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:
Kargatum
2022-01-21 18:21:00 +07:00
committed by GitHub
parent 93aac5eb27
commit f4b0f58701
3 changed files with 16 additions and 0 deletions

View File

@@ -225,6 +225,11 @@ public:
// Called when the world is actually shut down.
virtual void OnShutdown() { }
/**
* @brief Called after all maps are unloaded from core
*/
virtual void OnAfterUnloadAllMaps() { }
/**
* @brief This hook runs before finalizing the player world session. Can be also used to mutate the cache version of the Client.
*
@@ -2025,6 +2030,7 @@ public: /* WorldScript */
void OnStartup();
void OnShutdown();
void OnBeforeWorldInitialized();
void OnAfterUnloadAllMaps();
public: /* FormulaScript */
void OnHonorCalculation(float& honor, uint8 level, float multiplier);