#include "AllMapScript.h"
◆ AllMapScript()
AllMapScript::AllMapScript |
( |
const char * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
278{
279
280 if (enabledHooks.empty())
282 enabledHooks.emplace_back(i);
283
285}
std::uint16_t uint16
Definition: Define.h:108
@ ALLMAPHOOK_END
Definition: AllMapScript.h:33
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44
References ScriptRegistry< TScript >::AddScript(), and ALLMAPHOOK_END.
◆ OnBeforeCreateInstanceScript()
This hook called before create instance script.
- Parameters
-
instanceMap | Contains information about the WorldSession |
instanceData | Contains information about the WorldPacket |
load | if true loading instance save data |
data | Contains information about the instance save data |
completedEncounterMask | Contains information about the completed encouter mask |
◆ OnCreateMap()
virtual void AllMapScript::OnCreateMap |
( |
Map * |
| ) |
|
|
inlinevirtual |
This hook called before creating map.
- Parameters
-
map | Contains information about the Map |
◆ OnDestroyInstance()
This hook called before destroy instance.
- Parameters
-
mapInstanced | Contains information about the MapInstanced |
map | Contains information about the Map |
◆ OnDestroyMap()
virtual void AllMapScript::OnDestroyMap |
( |
Map * |
| ) |
|
|
inlinevirtual |
This hook called before destroing map.
- Parameters
-
map | Contains information about the Map |
◆ OnMapUpdate()
virtual void AllMapScript::OnMapUpdate |
( |
Map * |
, |
|
|
uint32 |
|
|
) |
| |
|
inlinevirtual |
This hook called before updating map.
- Parameters
-
map | Contains information about the Map |
diff | Contains information about the diff time |
◆ OnPlayerEnterAll()
virtual void AllMapScript::OnPlayerEnterAll |
( |
Map * |
, |
|
|
Player * |
|
|
) |
| |
|
inlinevirtual |
This hook called when a player enters any Map.
- Parameters
-
map | Contains information about the Map |
player | Contains information about the Player |
◆ OnPlayerLeaveAll()
virtual void AllMapScript::OnPlayerLeaveAll |
( |
Map * |
, |
|
|
Player * |
|
|
) |
| |
|
inlinevirtual |
This hook called when a player leave any Map.
- Parameters
-
map | Contains information about the Map |
player | Contains information about the Player |