예제 #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);
        }
예제 #2
0
파일: Brodee.cs 프로젝트: CryptArc/Brodee
        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);
        }
예제 #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;
 }
 public CreateSettingsButtonInGameMenuHandler(GameMenuControls gameMenuControls, GeneralControls generalControls, HandlerHub handlerHub)
 {
     _gameMenuControls = gameMenuControls;
     _generalControls  = generalControls;
     _handlerHub       = handlerHub;
 }