| 25 | } |
| 26 | |
| 27 | void 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 | |
| 36 | void ScenarioExt::ExtData::ReadVariables(bool bIsGlobal, CCINIClass* pINI) |
| 37 | { |