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

Method VariableCheck

src/Ext/TEvent/Body.cpp:173–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172template<bool IsGlobal, class _Pr>
173bool 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
187template<bool IsSrcGlobal, bool IsGlobal, class _Pr>
188bool TEventExt::VariableCheckBinary(TEventClass* pThis)

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected