コード例 #1
0
        public Game(IEventAggregator eventAggregator,
                    ISupplyBuilder supplyBuilder,
                    IEnumerable <Player> players,
                    IEnumerable <EndGameCondition> endGameConditions,
                    IContainer container)
        {
            TurnNumber       = 1;
            _eventAggregator = eventAggregator;
            _container       = container;
            Players          = players;
            Supply           = supplyBuilder.BuildSupply();
            _playerIterator  = Players.GetEnumerator();

            endGameConditions.ForEach(c => _endGameConditions.Add(c));
        }
コード例 #2
0
ファイル: Supply.cs プロジェクト: thatpaulschofield/Dominion
 public static Supply FromISupplyBuilder(ISupplyBuilder builder)
 {
     return(builder.BuildSupply());
 }