feat(Scripting/Hooks): Implement OnGameEventCheck() hook (#10761)
This commit is contained in:
parent
2dc40d1a7d
commit
57b9b296d8
3 changed files with 15 additions and 0 deletions
|
|
@ -33,3 +33,11 @@ void ScriptMgr::OnGameEventStop(uint16 EventID)
|
|||
script->OnStop(EventID);
|
||||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnGameEventCheck(uint16 EventID)
|
||||
{
|
||||
ExecuteScript<GameEventScript>([&](GameEventScript* script)
|
||||
{
|
||||
script->OnEventCheck(EventID);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue