| 8 | bool ScenarioExt::CellParsed = false; |
| 9 | |
| 10 | void ScenarioExt::ExtData::SetVariableToByID(bool bIsGlobal, int nIndex, char bState) |
| 11 | { |
| 12 | auto& dict = Global()->Variables[bIsGlobal]; |
| 13 | |
| 14 | auto itr = dict.find(nIndex); |
| 15 | |
| 16 | if (itr != dict.end() && itr->second.Value != bState) |
| 17 | { |
| 18 | itr->second.Value = bState; |
| 19 | ScenarioClass::Instance->VariablesChanged = true; |
| 20 | if (!bIsGlobal) |
| 21 | TagClass::NotifyLocalChanged(nIndex); |
| 22 | else |
| 23 | TagClass::NotifyGlobalChanged(nIndex); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | void ScenarioExt::ExtData::GetVariableStateByID(bool bIsGlobal, int nIndex, char* pOut) |
| 28 | { |
no test coverage detected