| 485 | |
| 486 | |
| 487 | bool cPluginManager::CallHookExploded(cWorld & a_World, double a_ExplosionSize, bool a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData) |
| 488 | { |
| 489 | HookMap::iterator Plugins = m_Hooks.find(HOOK_EXPLODED); |
| 490 | if (Plugins == m_Hooks.end()) |
| 491 | { |
| 492 | return false; |
| 493 | } |
| 494 | for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) |
| 495 | { |
| 496 | if ((*itr)->OnExploded(a_World, a_ExplosionSize, a_CanCauseFire, a_X, a_Y, a_Z, a_Source, a_SourceData)) |
| 497 | { |
| 498 | return true; |
| 499 | } |
| 500 | } |
| 501 | return false; |
| 502 | } |
| 503 | |
| 504 | |
| 505 |
no test coverage detected