protected override void BindPrimaryCommandsToExecute() { BindCommandToExecutor.Add <CreateCommand, CreateExecute>(); BindCommandToExecutor.Add <MoveCommand, MoveExecute>(); BindCommandToExecutor.Add <StackCommand, StackExecute>(); BindCommandToExecutor.Add <SwapPrimaryCommand, SwapPrimaryExecute>(); BindCommandToExecutor.Add <RemoveCommand, RemoveExecute>(); }
protected override void LoadBasic() { InventoryBindingFactory = new InventoryBindingFactory(); IdGen = new IdGenerator(); FactoryCommandNoValidOnlyForFilters = new CommandNoValidOnlyForFiltersFactory(); Hand = new Hand(); _dataBase = new DataBase(); DatabaseCommands = _dataBase; DatabaseReadOnly = _dataBase; DatabaseNotifier = _dataBase; NotifierPrimaryEvents = new NotifierPrimaryEvents(); PositionsManager = new PositionsManager(); FactoryDataEntityPrefab = new FactoryTypeToPrefab(); BindCommandToExecutor = new BindCommandToExecutor(); ExecutorFactory = new ExecutorCommandFactory(); FiltersManager = new FiltersManager(); }