public static void Exit(int exitCode) { GameWindow.OnExit(exitCode); Logger?.Log(LogEntryType.Info, "Game exited! Exit code: " + exitCode); Environment.Exit(exitCode); }
} // Hidden constructor /// <summary> /// Creates new <see cref="GameWindow"/> instance with specified window parameters /// </summary> /// <param name="parameters">Window parameters for window</param> public GameWindow(WindowParameters parameters) { ApplyWindowParams(parameters); ResizeRedraw = true; Current = this; }