| 172 | } |
| 173 | |
| 174 | esv::Item * FindItemByHandle(ObjectHandle const & handle, bool logError) |
| 175 | { |
| 176 | auto component = FindComponentByHandle(ComponentType::Item, handle, logError); |
| 177 | if (component != nullptr) { |
| 178 | return (esv::Item *)((uint8_t *)component - 8); |
| 179 | } else { |
| 180 | return nullptr; |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | esv::GameAction * FindGameActionByHandle(ObjectHandle const & handle) |
| 185 | { |
no test coverage detected