private void Reset( ) { SteamReset( ); /* * if (MyAPIGateway.Session != null) * { * MyAPIGateway.Session.UnloadDataComponents(); * MyAPIGateway.Session.UnloadMultiplayer(); * MyAPIGateway.Session.Unload(); * } */ try { MyPlugins.Unload( ); } catch { } MyAudio.Static.UnloadData( ); MyAudio.UnloadData( ); MyFileSystem.Reset( ); InputReset( ); PhysicsReset( ); }
/// <summary> /// Unloads the data. /// </summary> private void UnloadData() { MinerWars.AppCode.Game.Render.MyRender.GetRenderProfiler().StartProfilingBlock("MyMinerGame::UnloadData"); MyMwcLog.WriteLine("MyMinerGame.UnloadData() - START"); MyMwcLog.IncreaseIndent(); // TODO: Unload data probably not necessery because all data are loaded at start and dies at the end. No partial unload. // We must unload XACT sounds here, not in the background thread, because on Windows XP every XACT sound loaded in // not-main thread is then not player (I can't hear it). MyAudio.UnloadData(); MyGameplayCheats.UnloadData(); // Not using now //MyClientServer.UnloadData(); MyPerformanceTimer.UnloadData(); MyMwcLog.DecreaseIndent(); MyMwcLog.WriteLine("MyMinerGame.UnloadData() - END"); MinerWars.AppCode.Game.Render.MyRender.GetRenderProfiler().EndProfilingBlock(); }