| 171 | |
| 172 | template<bool IsGlobal, class _Pr> |
| 173 | bool TEventExt::VariableCheck(TEventClass* pThis) |
| 174 | { |
| 175 | auto itr = ScenarioExt::Global()->Variables[IsGlobal].find(pThis->Value); |
| 176 | |
| 177 | if (itr != ScenarioExt::Global()->Variables[IsGlobal].end()) |
| 178 | { |
| 179 | // We uses TechnoName for our operator number |
| 180 | int nOpt = atoi(pThis->String); |
| 181 | return _Pr()(itr->second.Value, nOpt); |
| 182 | } |
| 183 | |
| 184 | return false; |
| 185 | } |
| 186 | |
| 187 | template<bool IsSrcGlobal, bool IsGlobal, class _Pr> |
| 188 | bool TEventExt::VariableCheckBinary(TEventClass* pThis) |