Пример #1
0
        static void Main()
        {
            GameLauncher gameLauncher = new GameLauncher();

#if !DEBUGSCENE
            LauncherInformation li = gameLauncher.OpenDialog();

            if (li.LauncherOperationStatus == LauncherOperationStatus.AuthConfirmed)
            {
                Parameter.Initialize(li);
            }
            else
            {
                return;
            }
#endif

#if DEBUGSCENE
            DebugScene.InitializeObjects();
#endif

            using (var game = new Game1())
            {
                game.Run();
            }

            ServerInformationBroker.Instance.StopServices();
        }
Пример #2
0
        private void ChckListBxDebugFlags_ItemCheck(object sender, ItemCheckEventArgs e)
        {
            if (e.NewValue == CheckState.Checked)
            {
                DebugScene.Flags |= (DebugViewFlags)ChckListBxDebugFlags.Items[e.Index];
            }
            else
            {
                DebugScene.Flags &= ~(DebugViewFlags)ChckListBxDebugFlags.Items[e.Index];
            }

            DebugScene.Invalidate();
        }
Пример #3
0
        public static void LoadScene(string name)
        {
            try
            {
                ActiveScene = _kernel.Get <DinoScene>(name);
            }
            catch
            {
                ActiveScene = new DebugScene(_game, name);
            }

            _game.SwitchScene(ActiveScene);
        }
Пример #4
0
        static void Main(string[] args)
        {
#if !DEBUGSCENE
            if (!CreateLauncherScreen(args))
            {
                return;
            }

            CreateLoadingScreen();
#elif DEBUGSCENE
            DebugScene.InitializeObjects();
#endif

            using (var game = new Game1())
            {
                game.Run();
            }

            ServerInformationBroker.Instance.StopServices();
        }
Пример #5
0
 private void BtnStep_Click(object sender, EventArgs e)
 {
     DebugScene.Step();
 }