예제 #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();
        }
 public WithdrawalCommandFactory(IPaymentFactory paymentFactory, IAccountRegistry accounts)
 {
     _paymentFactory = paymentFactory;
     _accounts       = accounts;
 }
 public UpdatePlayerBalanceCommand(IPlayer player, IAccountRegistry accounts, IBalanceModification balanceModification)
 {
     _player              = player;
     _accounts            = accounts;
     _balanceModification = balanceModification;
 }
 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;
 }
 public DepositCommandFactory(IPaymentFactory paymentFactory, IAccountRegistry accounts)
 {
     _paymentFactory = paymentFactory;
     _accounts       = accounts;
 }