| 186 | } |
| 187 | |
| 188 | bool 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 | |
| 201 | bool TActionExt::BinaryOperation(TActionClass* pThis, HouseClass* pHouse, ObjectClass* pObject, TriggerClass* pTrigger, CellStruct const& location) |
| 202 | { |