| 800 | |
| 801 | |
| 802 | bool cPluginManager::CallHookPlayerLeftClick(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status) |
| 803 | { |
| 804 | HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_LEFT_CLICK); |
| 805 | if (Plugins == m_Hooks.end()) |
| 806 | { |
| 807 | return false; |
| 808 | } |
| 809 | for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) |
| 810 | { |
| 811 | if ((*itr)->OnPlayerLeftClick(a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_Status)) |
| 812 | { |
| 813 | return true; |
| 814 | } |
| 815 | } |
| 816 | return false; |
| 817 | } |
| 818 | |
| 819 | |
| 820 |
no test coverage detected