| 35 | } |
| 36 | |
| 37 | esv::EoCServerObject * FindGameObjectByNameGuid(std::string const & nameGuid, bool logError) |
| 38 | { |
| 39 | auto character = FindCharacterByNameGuid(nameGuid, false); |
| 40 | if (character != nullptr) { |
| 41 | return character; |
| 42 | } |
| 43 | |
| 44 | auto item = FindItemByNameGuid(nameGuid, false); |
| 45 | if (item != nullptr) { |
| 46 | return item; |
| 47 | } |
| 48 | |
| 49 | if (logError) { |
| 50 | OsiError("No EoC server object found with GUID '" << nameGuid << "'"); |
| 51 | } |
| 52 | |
| 53 | return nullptr; |
| 54 | } |
| 55 | |
| 56 | esv::EoCServerObject * FindGameObjectByHandle(ObjectHandle const & handle, bool logError) |
| 57 | { |
no test coverage detected