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); }
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); }
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 CheckBoxAttemptHandler(OptionMenuControls optionMenuControls) { _optionMenuControls = optionMenuControls; }
public CreateSliderHandler(OptionMenuControls optionMenuControls) { _optionMenuControls = optionMenuControls; }