public GameStateConfigurationInitializer( IInitialPlacementHandler initialPlacementHandler, IAccountRegistry accountRegistry, ISpaceCommandFactoryBinder spaceCommandFactoryBinder) { _initialPlacementHandler = initialPlacementHandler; _accountRegistry = accountRegistry; _spaceCommandFactoryBinder = spaceCommandFactoryBinder; }
/// <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)) { }
public LuxuryTaxCommandFactory(IAccountRegistry accounts) : base(accounts, new FixedBalanceModification(AssessedPenalty)) { }
public BalanceModificationCommandFactory(IAccountRegistry accounts, IBalanceModification balanceModification) { _accounts = accounts; _balanceModification = balanceModification; }
public DepositCommandFactory(IPaymentFactory paymentFactory, IAccountRegistry accounts) { _paymentFactory = paymentFactory; _accounts = accounts; }