feat(Core/Scripts): new OnBeforeFinalizePlayerWorldSession() hook (#7136)

Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
This commit is contained in:
Kaytotes
2021-08-22 12:41:19 +01:00
committed by GitHub
parent 75e55e21df
commit d18545263f
5 changed files with 37 additions and 7 deletions

View File

@@ -408,6 +408,11 @@ void ScriptMgr::OnAfterConfigLoad(bool reload)
FOREACH_SCRIPT(WorldScript)->OnAfterConfigLoad(reload);
}
void ScriptMgr::OnBeforeFinalizePlayerWorldSession(uint32& cacheVersion)
{
FOREACH_SCRIPT(WorldScript)->OnBeforeFinalizePlayerWorldSession(cacheVersion);
}
void ScriptMgr::OnMotdChange(std::string& newMotd)
{
FOREACH_SCRIPT(WorldScript)->OnMotdChange(newMotd);