コード例 #1
0
 public GameStateConfigurationInitializer(
     IInitialPlacementHandler initialPlacementHandler,
     IAccountRegistry accountRegistry,
     ISpaceCommandFactoryBinder spaceCommandFactoryBinder)
 {
     _initialPlacementHandler   = initialPlacementHandler;
     _accountRegistry           = accountRegistry;
     _spaceCommandFactoryBinder = spaceCommandFactoryBinder;
 }
コード例 #2
0
        /// <summary>
        /// Загрузка дерева из настроек
        /// </summary>
        private void LoadSittings()
        {
            _settings        = _unityContainer.Resolve <IGroupSettings>();
            _accountRegistry = _unityContainer.Resolve <IAccountRegistry>();

            GroupSettingsContainer root = _settings.LoadGroupTree();

            if (root == null)
            {
                _groupTree      = _unityContainer.Resolve <IContainer>();
                _groupTree.Name = "Root";
                _groupTree.Size = new SpaceSize();
                return;
            }

            _groupTree = _unityContainer.Resolve <IContainer>();
            LoadChildren(_groupTree, root);

            _groupTree.LoadSizeInfo();
        }
コード例 #3
0
 public WithdrawalCommandFactory(IPaymentFactory paymentFactory, IAccountRegistry accounts)
 {
     _paymentFactory = paymentFactory;
     _accounts       = accounts;
 }
コード例 #4
0
 public UpdatePlayerBalanceCommand(IPlayer player, IAccountRegistry accounts, IBalanceModification balanceModification)
 {
     _player              = player;
     _accounts            = accounts;
     _balanceModification = balanceModification;
 }
コード例 #5
0
 public IncomeTaxCommandFactory(IAccountRegistry accounts)
     : base(accounts, new ProportionalPenaltyWithCap(PenaltyPercentage, PenaltyCap))
 {
 }
コード例 #6
0
 public LuxuryTaxCommandFactory(IAccountRegistry accounts)
     : base(accounts, new FixedBalanceModification(AssessedPenalty))
 {
 }
コード例 #7
0
 public BalanceModificationCommandFactory(IAccountRegistry accounts, IBalanceModification balanceModification)
 {
     _accounts            = accounts;
     _balanceModification = balanceModification;
 }
コード例 #8
0
 public DepositCommandFactory(IPaymentFactory paymentFactory, IAccountRegistry accounts)
 {
     _paymentFactory = paymentFactory;
     _accounts       = accounts;
 }