#include "WorldObjectScript.h"
◆ WorldObjectScript()
WorldObjectScript::WorldObjectScript |
( |
const char * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
59{
60
61 if (enabledHooks.empty())
63 enabledHooks.emplace_back(i);
64
66}
std::uint16_t uint16
Definition: Define.h:108
@ WORLDOBJECTHOOK_END
Definition: WorldObjectScript.h:31
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44
References ScriptRegistry< TScript >::AddScript(), and WORLDOBJECTHOOK_END.
◆ IsDatabaseBound()
bool WorldObjectScript::IsDatabaseBound |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ OnWorldObjectCreate()
virtual void WorldObjectScript::OnWorldObjectCreate |
( |
WorldObject * |
| ) |
|
|
inlinevirtual |
This hook called after create world object.
- Parameters
-
◆ OnWorldObjectDestroy()
virtual void WorldObjectScript::OnWorldObjectDestroy |
( |
WorldObject * |
| ) |
|
|
inlinevirtual |
This hook called before destroy world object.
- Parameters
-
◆ OnWorldObjectResetMap()
virtual void WorldObjectScript::OnWorldObjectResetMap |
( |
WorldObject * |
| ) |
|
|
inlinevirtual |
This hook called after world object reset.
- Parameters
-
◆ OnWorldObjectSetMap()
virtual void WorldObjectScript::OnWorldObjectSetMap |
( |
WorldObject * |
, |
|
|
Map * |
|
|
) |
| |
|
inlinevirtual |
This hook called after world object set to map.
- Parameters
-
◆ OnWorldObjectUpdate()
This hook called after world object update.
- Parameters
-
object | Contains information about the WorldObject |
diff | Contains information about the diff time |