34 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SoulstormReplayReader.Core.Domain.Action;
using SoulstormReplayReader.Core.Domain.ChatMessage;
using SoulstormReplayReader.Core.Domain.Player;
using SoulstormReplayReader.Core.Enums;
namespace SoulstormReplayReader.Core.Domain.Replay;
public sealed class ReplayModel
{
public ReplayVersion Version { get; set; }
public string IngameName { get; set; }
public string ModName { get; set; }
public string EngineName { get; set; }
public string EngineAddon { get; set; } // Не очень понятно что это
public uint WorldSeed { get; set; }
public int TotalTicks { get; set; }
public Map Map { get; } = new();
public List<PlayerModel> Players { get; set; }
public List<IGameAction> Actions { get; set; }
public List<ChatMessageModel> ChatMessages { get; set; }
public GameSettings GameSettings { get; set; }
public WinConditions WinConditions { get; } = new();
public Exception Exception { get; set; }
public IEnumerable<PlayerModel> ActivePlayers => Players.Where(x => x.IsActive);
public int ActivePlayersCount => Players.Count(p => p.IsActive);
public int TeamsCount => Players.Select(player => player.Team).Max();
}