| 12 | FunctionHandle HealEventHandle; |
| 13 | |
| 14 | esv::StatusMachine * GetStatusMachine(char const * gameObjectGuid) |
| 15 | { |
| 16 | auto character = FindCharacterByNameGuid(gameObjectGuid, false); |
| 17 | if (character != nullptr) { |
| 18 | return character->StatusMachine; |
| 19 | } |
| 20 | |
| 21 | auto item = FindItemByNameGuid(gameObjectGuid, false); |
| 22 | if (item != nullptr) { |
| 23 | return item->StatusMachine; |
| 24 | } |
| 25 | |
| 26 | OsiError("Character or item " << gameObjectGuid << " does not exist!"); |
| 27 | return nullptr; |
| 28 | } |
| 29 | |
| 30 | namespace func |
| 31 | { |
no test coverage detected