void Apply(GameSetupStarted e) { Id = e.GameSetupId; _gameId = e.GameId; _players = new Players(e.Players, e.NumberOfStartingInfantryUnits); _currentPlayerId = e.StartingPlayerId; _board = e.Board; }
public GameSetupStarted(Guid gameSetupId, Guid gameId, IList<Guid> players, Guid startingPlayerId, Board board, int numberOfStartingInfantryUnits) { this.GameId = gameId; this.GameSetupId = gameSetupId; this.Players = players; this.StartingPlayerId = startingPlayerId; this.Board = board; this.NumberOfStartingInfantryUnits = numberOfStartingInfantryUnits; }