Esempio n. 1
0
 internal void LoadCore(GameObjectRepo gameObjectRepo,
     HandlerHub handlerHub,
     GameMenuControls gameMenuControls,
     OptionMenuControls optionMenuControls,
     GeneralControls generalControls,
     Func<GameState> oldGameStateFunc,
     Func<GameState> newGameStateFunc)
 {
     var coreInstaller = new CoreModuleInstaller(gameObjectRepo, gameMenuControls, optionMenuControls, generalControls, oldGameStateFunc, newGameStateFunc, handlerHub);
     coreInstaller.Install(handlerHub);
 }
Esempio n. 2
0
        private void Start()
        {
            _handlerHub = new HandlerHub();
            _gameObjectRepo = new GameObjectRepo();
            var gameMenuControls = new GameMenuControls();
            var optionMenuControls = new OptionMenuControls();
            var generalControls = new GeneralControls();


            _moduleModuleManager.LoadCore(_gameObjectRepo, _handlerHub, gameMenuControls, optionMenuControls, generalControls, () => _oldGameState, () => _newGameState);
            _moduleModuleManager.LoadModules(_handlerHub);

            var startUpHandler = new StartUpHandler(generalControls);

            startUpHandler.SpecificHandle(_oldGameState, _newGameState);
        }
Esempio n. 3
0
 public CoreModuleInstaller(GameObjectRepo gameObjectRepo,
     GameMenuControls gameMenuControls,
     OptionMenuControls optionMenuControls,
     GeneralControls generalControls,
     Func<GameState> oldGameStateFunc,
     Func<GameState> newGameStateFunc,
     HandlerHub handlerHub
     )
     : base("Core")
 {
     _gameObjectRepo = gameObjectRepo;
     _gameMenuControls = gameMenuControls;
     _optionMenuControls = optionMenuControls;
     _generalControls = generalControls;
     _oldGameStateFunc = oldGameStateFunc;
     _newGameStateFunc = newGameStateFunc;
     _handlerHub = handlerHub;
 }