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

Method PrintVariableValue

src/Ext/TAction/Body.cpp:188–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188bool TActionExt::PrintVariableValue(TActionClass* pThis, HouseClass* pHouse, ObjectClass* pObject, TriggerClass* pTrigger, CellStruct const& location)
189{
190 auto& variables = ScenarioExt::Global()->Variables[pThis->Param3 != 0];
191 auto itr = variables.find(pThis->Value);
192 if (itr != variables.end())
193 {
194 CRT::swprintf(Phobos::wideBuffer, L"%d", itr->second.Value);
195 MessageListClass::Instance.PrintMessage(Phobos::wideBuffer);
196 }
197
198 return true;
199}
200
201bool TActionExt::BinaryOperation(TActionClass* pThis, HouseClass* pHouse, ObjectClass* pObject, TriggerClass* pTrigger, CellStruct const& location)
202{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected