Ejemplo n.º 1
0
        public static MainController Get()
        {
            if (s_mainController != null)
            {
                return(s_mainController);
            }

            s_mainController = new MainController
            {
                Configuration = Configuration.Load(),
                Logger        = new LoggerService(),
            };
            s_gameController = new MockGameController();

            return(s_mainController);
        }
Ejemplo n.º 2
0
 public static async Task SetGame(GameControllerBase controller)
 {
     s_gameController = controller;
     await controller.HandleStartup();
 }