示例#1
0
 public static void Exit(int exitCode)
 {
     GameWindow.OnExit(exitCode);
     Logger?.Log(LogEntryType.Info, "Game exited! Exit code: " + exitCode);
     Environment.Exit(exitCode);
 }
示例#2
0
        }                        // 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;
        }