示例#1
0
 public static void Initialize()
 {
     Game.GameStarted += (sender, args) =>
     {              
         var game = (Game)sender;
         var testingSystem = new GameTestingSystem(game.Services);
         game.GameSystems.Add(testingSystem);
     };
 }
示例#2
0
文件: Module.cs 项目: cg123/xenko
        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);
            };
        }
示例#3
0
文件: Module.cs 项目: vol16bit/xenko
        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);
            };
        }