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(); }
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(); }
public static void LoadScene(string name) { try { ActiveScene = _kernel.Get <DinoScene>(name); } catch { ActiveScene = new DebugScene(_game, name); } _game.SwitchScene(ActiveScene); }
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(); }
private void BtnStep_Click(object sender, EventArgs e) { DebugScene.Step(); }