MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / EndGameLoop

Function EndGameLoop

TombEngine/Game/control/control.cpp:746–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746void EndGameLoop(int levelIndex, GameStatus reason)
747{
748 // Save last screenshot for loading screen.
749 g_Renderer.DumpGameScene();
750
751 if (reason == GameStatus::LevelComplete)
752 SaveGame::SaveHub(levelIndex);
753
754 DeInitializeScripting(levelIndex, reason);
755
756 g_VideoPlayer.Stop();
757 StopAllSounds();
758 StopSoundTracks(SOUND_XFADETIME_LEVELJUMP, true);
759 StopRumble();
760}
761
762void SetupInterpolation()
763{

Callers 1

DoGameLoopFunction · 0.85

Calls 6

DeInitializeScriptingFunction · 0.85
StopAllSoundsFunction · 0.85
StopSoundTracksFunction · 0.85
StopRumbleFunction · 0.85
DumpGameSceneMethod · 0.80
StopMethod · 0.80

Tested by

no test coverage detected