public App(IApplicationQuitter applicationQuitter, IRoot root, AppInitializer appInitializer, GameStartUseCase gameStartUseCase, AppDataLoader appDataLoader)
        {
            this.applicationQuitter = applicationQuitter;
            this.root             = root;
            this.appInitializer   = appInitializer;
            this.gameStartUseCase = gameStartUseCase;
            this.appDataLoader    = appDataLoader;

            applicationQuitter.OnQuit += ApplicationQuitter_OnQuit;
            this.root.OnInitialized   += Root_OnInitialized;
        }
Beispiel #2
0
        public App(IApplicationQuitter applicationQuitter, WindowNavigation windowNavigation, IRoot root,
                   IPauseAdapter pauseAdapter, ILogger logger, GameStrategyFactory gameFactory, IDataProvider <Game.Entities.Game> gameDataProvider)
        {
            this.applicationQuitter = applicationQuitter;
            this.windowNavigation   = windowNavigation;
            this.root                = root;
            this.pauseAdapter        = pauseAdapter;
            this.logger              = logger;
            this.gameStrategyFactory = gameFactory;
            this.gameDataProvider    = gameDataProvider;

            applicationQuitter.OnQuit += ApplicationQuitter_OnQuit;
            pauseAdapter.OnPause      += PauseAdapter_OnPause;
            root.OnInitialized        += Root_OnInitialized;
        }