feat(Core/ScriptMgr): add new hook OnAfterUnloadAllMaps (#10279)
* feat(Core/ScriptMgr): add new hook * add desc * Update src/server/game/Scripting/ScriptDefines/WorldScript.cpp
This commit is contained in:
parent
93aac5eb27
commit
f4b0f58701
3 changed files with 16 additions and 0 deletions
|
|
@ -113,3 +113,11 @@ void ScriptMgr::OnBeforeWorldInitialized()
|
|||
script->OnBeforeWorldInitialized();
|
||||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnAfterUnloadAllMaps()
|
||||
{
|
||||
ExecuteScript<WorldScript>([](WorldScript* script)
|
||||
{
|
||||
script->OnAfterUnloadAllMaps();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue