MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ASGetCurrCampaignID

Function ASGetCurrCampaignID

Source/Scripting/angelscript/asfuncs.cpp:5665–5672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5663}
5664
5665static std::string ASGetCurrCampaignID() {
5666 ScriptableCampaign* sc = Engine::Instance()->GetCurrentCampaign();
5667 if (sc) {
5668 return sc->GetCampaignID();
5669 } else {
5670 return "";
5671 }
5672}
5673
5674static std::string ASGetCurrLevelRelPath() {
5675 SceneGraph* s = Engine::Instance()->GetSceneGraph();

Callers

nothing calls this directly

Calls 2

GetCurrentCampaignMethod · 0.80
GetCampaignIDMethod · 0.80

Tested by

no test coverage detected