| 506 | |
| 507 | |
| 508 | bool cPluginManager::CallHookExploding(cWorld & a_World, double & a_ExplosionSize, bool & a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData) |
| 509 | { |
| 510 | HookMap::iterator Plugins = m_Hooks.find(HOOK_EXPLODING); |
| 511 | if (Plugins == m_Hooks.end()) |
| 512 | { |
| 513 | return false; |
| 514 | } |
| 515 | for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) |
| 516 | { |
| 517 | if ((*itr)->OnExploding(a_World, a_ExplosionSize, a_CanCauseFire, a_X, a_Y, a_Z, a_Source, a_SourceData)) |
| 518 | { |
| 519 | return true; |
| 520 | } |
| 521 | } |
| 522 | return false; |
| 523 | } |
| 524 | |
| 525 | |
| 526 |
no test coverage detected