Added Hook
* This hook can be used to cache module database tables.
This commit is contained in:
parent
8767372ebf
commit
a5a130b95a
3 changed files with 13 additions and 0 deletions
|
|
@ -245,6 +245,9 @@ class WorldScript : public ScriptObject
|
|||
// Called after the world configuration is (re)loaded.
|
||||
virtual void OnAfterConfigLoad(bool /*reload*/) { }
|
||||
|
||||
// Called when loading custom database tables
|
||||
virtual void OnLoadCustomDatabeTable() { }
|
||||
|
||||
// Called before the world configuration is (re)loaded.
|
||||
virtual void OnBeforeConfigLoad(bool /*reload*/) { }
|
||||
|
||||
|
|
@ -1132,6 +1135,7 @@ class ScriptMgr
|
|||
|
||||
public: /* WorldScript */
|
||||
|
||||
void OnLoadCustomDatabeTable();
|
||||
void OnOpenStateChange(bool open);
|
||||
void OnBeforeConfigLoad(bool reload);
|
||||
void OnAfterConfigLoad(bool reload);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue