Example #1
0
 public static void Initialize()
 {
     Game.GameStarted += (sender, args) =>
     {              
         var game = (Game)sender;
         var testingSystem = new GameTestingSystem(game.Services);
         game.GameSystems.Add(testingSystem);
     };
 }
Example #2
0
        public static void Initialize()
        {
            //Quit after 10 seconds anyway!
            Task.Run(async () =>
            {
                await Task.Delay(20000);
                if (!GameTestingSystem.Initialized)
                {
#if SILICONSTUDIO_PLATFORM_IOS || SILICONSTUDIO_PLATFORM_ANDROID || SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP
                    Console.WriteLine(@"FATAL: Test launch timeout. Aborting.");
#endif
                    GameTestingSystem.Quit();
                }
            });

            //quit after 10 seconds in any case
            Game.GameStarted += (sender, args) =>
            {              
                var game = (Game)sender;
                var testingSystem = new GameTestingSystem(game.Services);
                game.GameSystems.Add(testingSystem);
            };
        }
Example #3
0
        public static void Initialize()
        {
            //Quit after 10 seconds anyway!
            Task.Run(async() =>
            {
                await Task.Delay(20000);
                if (!GameTestingSystem.Initialized)
                {
#if SILICONSTUDIO_PLATFORM_IOS || SILICONSTUDIO_PLATFORM_ANDROID || SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP
                    Console.WriteLine(@"FATAL: Test launch timeout. Aborting.");
#endif
                    GameTestingSystem.Quit();
                }
            });

            //quit after 10 seconds in any case
            Game.GameStarted += (sender, args) =>
            {
                var game          = (Game)sender;
                var testingSystem = new GameTestingSystem(game.Services);
                game.GameSystems.Add(testingSystem);
            };
        }