public static void SdlDotNet_Core_Events_Quit(object sender, SdlDotNet.Core.QuitEventArgs e) { Music.Music.Dispose(); Environment.Exit(0); SdlCore.QuitApplication(); }
/// <summary> /// Handles the AfterQuit event of the Game control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SdlDotNet.Core.QuitEventArgs"/> instance containing the event data.</param> void Game_BeforeQuit(object sender, SdlDotNet.Core.QuitEventArgs e) { TextureManager.ReturnTexture(cursor.Id); SaveGame("_lastGame"); }