MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / phaseCreate

Method phaseCreate

Source/ScriptingEngine.cpp:339–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339std::shared_ptr<cPhase> cScriptingEngine::phaseCreate() {
340 auto phase = std::make_shared<cPhase>();
341 getMission()->mPhases.push_back(phase);
342 ++g_Fodder->mGame_Data.mMission_Phases_Remaining;
343
344 mapSave();
345 g_Fodder->mCustom_Mode = eCustomMode_Set;
346 g_Fodder->mGame_Data.Phase_Next();
347 return phase;
348}
349
350std::shared_ptr<cMission> cScriptingEngine::missionCreate() {
351 auto mission = std::make_shared<cMission>();

Callers

nothing calls this directly

Calls 2

Phase_NextMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected