| 182 | } |
| 183 | |
| 184 | esv::GameAction * FindGameActionByHandle(ObjectHandle const & handle) |
| 185 | { |
| 186 | auto const & lib = gOsirisProxy->GetLibraryManager(); |
| 187 | auto actionMgr = lib.GetGameActionManager(); |
| 188 | |
| 189 | for (uint32_t i = 0; i < actionMgr->GameActions.Size; i++) { |
| 190 | auto action = actionMgr->GameActions.Buf[i]; |
| 191 | if (action->MyHandle == handle) { |
| 192 | return action; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | OsiError("Nm game action found with handle " << (int64_t)handle); |
| 197 | return nullptr; |
| 198 | } |
| 199 | |
| 200 | ShootProjectileApiHelper::ShootProjectileApiHelper() |
| 201 | { |
no test coverage detected