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

Method mapSave

Source/ScriptingEngine.cpp:399–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397
398
399void cScriptingEngine::mapSave() {
400
401 if (getPhase()->GetMapFilename().size() == 0) {
402 getPhase()->SetMapFilename("random");
403 }
404
405 g_Fodder->mMapLoaded->save(getCampaign()->GetPathToFile(getPhase()->GetMapFilename()), true);
406}
407
408bool cScriptingEngine::scriptCall(const std::string& pFilename) {
409

Callers

nothing calls this directly

Calls 5

GetMapFilenameMethod · 0.80
SetMapFilenameMethod · 0.80
GetPathToFileMethod · 0.80
sizeMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected