MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / GetVariableStateByID

Method GetVariableStateByID

src/Ext/Scenario/Body.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void ScenarioExt::ExtData::GetVariableStateByID(bool bIsGlobal, int nIndex, char* pOut)
28{
29 auto& dict = Global()->Variables[bIsGlobal];
30
31 auto itr = dict.find(nIndex);
32 if (itr != dict.end())
33 *pOut = static_cast<char>(itr->second.Value);
34}
35
36void ScenarioExt::ExtData::ReadVariables(bool bIsGlobal, CCINIClass* pINI)
37{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected