1
0

Add cLuaWindow OnClicked Callback (#3901)

This commit is contained in:
Lane Kolbly
2017-08-17 09:27:43 -05:00
committed by Mattes D
parent 238f5bb338
commit 1ec85a2b2c
15 changed files with 156 additions and 3 deletions

View File

@@ -999,6 +999,25 @@ bool cPluginManager::CallHookPlayerMoving(cPlayer & a_Player, const Vector3d & a
bool cPluginManager::CallHookPlayerOpeningWindow(cPlayer & a_Player, cWindow & a_Window)
{
FIND_HOOK(HOOK_PLAYER_OPENING_WINDOW);
VERIFY_HOOK;
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
if ((*itr)->OnPlayerOpeningWindow(a_Player, a_Window))
{
return true;
}
}
return false;
}
bool cPluginManager::CallHookPlayerPlacedBlock(cPlayer & a_Player, const sSetBlock & a_BlockChange)
{
FIND_HOOK(HOOK_PLAYER_PLACED_BLOCK);