#include "DatabaseScript.h"
◆ DatabaseScript()
DatabaseScript::DatabaseScript |
( |
const char * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
34{
35
36 if (enabledHooks.empty())
38 enabledHooks.emplace_back(i);
39
41}
std::uint16_t uint16
Definition: Define.h:108
@ DATABASEHOOK_END
Definition: DatabaseScript.h:28
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44
References ScriptRegistry< TScript >::AddScript(), and DATABASEHOOK_END.
◆ IsDatabaseBound()
bool DatabaseScript::IsDatabaseBound |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ OnAfterDatabaseLoadCreatureTemplates()
virtual void DatabaseScript::OnAfterDatabaseLoadCreatureTemplates |
( |
std::vector< CreatureTemplate * > |
| ) |
|
|
inlinevirtual |
Called after all creature template data has been loaded from the database. This hook could be called multiple times, not just at server startup.
- Parameters
-
creatureTemplates | Pointer to a modifiable vector of creature templates. Indexed by Entry ID. |
◆ OnAfterDatabasesLoaded()
virtual void DatabaseScript::OnAfterDatabasesLoaded |
( |
uint32 |
| ) |
|
|
inlinevirtual |
Called after all databases are loaded.
- Parameters
-
updateFlags | Update flags from the loader |