コード例 #1
0
ファイル: GameSetup.cs プロジェクト: QuinntyneBrown/DDD-Risk
 void Apply(GameSetupStarted e)
 {
     Id = e.GameSetupId;
     _gameId = e.GameId;
     _players = new Players(e.Players, e.NumberOfStartingInfantryUnits);
     _currentPlayerId = e.StartingPlayerId;
     _board = e.Board;
 }
コード例 #2
0
 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;
 }