mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
feat(Core/Scripts): new OnBeforeFinalizePlayerWorldSession() hook (#7136)
Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
This commit is contained in:
@@ -194,6 +194,13 @@ public:
|
||||
|
||||
// Called when the world is actually shut down.
|
||||
virtual void OnShutdown() { }
|
||||
|
||||
/**
|
||||
* @brief This hook runs before finalizing the player world session. Can be also used to mutate the cache version of the Client.
|
||||
*
|
||||
* @param version The cache version that we will be sending to the Client.
|
||||
*/
|
||||
virtual void OnBeforeFinalizePlayerWorldSession(uint32& /*cacheVersion*/) {}
|
||||
};
|
||||
|
||||
class FormulaScript : public ScriptObject
|
||||
@@ -1466,6 +1473,7 @@ public: /* WorldScript */
|
||||
void OnOpenStateChange(bool open);
|
||||
void OnBeforeConfigLoad(bool reload);
|
||||
void OnAfterConfigLoad(bool reload);
|
||||
void OnBeforeFinalizePlayerWorldSession(uint32& cacheVersion);
|
||||
void OnMotdChange(std::string& newMotd);
|
||||
void OnShutdownInitiate(ShutdownExitCode code, ShutdownMask mask);
|
||||
void OnShutdownCancel();
|
||||
|
||||
Reference in New Issue
Block a user