MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / QuickPlayGame

Function QuickPlayGame

Descent3/game.cpp:808–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806#ifdef EDITOR
807bool Game_being_played_from_quick_play = false;
808void QuickPlayGame() {
809 if (InitGame()) {
810 Game_being_played_from_quick_play = true;
811 QuickStartMission();
812
813 // Run the game (note, if this call returns false, we couldn't play a level. Display an error maybe?
814 GameSequencer();
815 QuickEndMission();
816 } else {
817 }
818 Game_being_played_from_quick_play = false;
819
820 // Close down some game stuff
821 // close down any systems not needed outside game.
822 CloseGameScript();
823 CloseHUD();
824 DoorwayDeactivateAll(); // deactivate doorways
825 ui_RemoveAllWindows(); // remove any ui windows left open.
826 SuspendControls();
827}
828#endif
829
830void PlayGame() {

Callers 1

MainLoopFunction · 0.85

Calls 9

InitGameFunction · 0.85
QuickStartMissionFunction · 0.85
GameSequencerFunction · 0.85
QuickEndMissionFunction · 0.85
CloseGameScriptFunction · 0.85
CloseHUDFunction · 0.85
DoorwayDeactivateAllFunction · 0.85
ui_RemoveAllWindowsFunction · 0.85
SuspendControlsFunction · 0.85

Tested by

no test coverage detected