#include "AllMapScript.h"
◆ AllMapScript()
| AllMapScript::AllMapScript |
( |
char const * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
285{
286
287 if (enabledHooks.empty())
289 enabledHooks.emplace_back(i);
290
292}
@ ALLMAPHOOK_END
Definition AllMapScript.h:34
std::uint16_t uint16
Definition Define.h:108
Definition ScriptObject.h:42
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition ScriptMgr.h:795
References ScriptRegistry< TScript >::AddScript(), and ALLMAPHOOK_END.
◆ CanSendObjectUpdatesToPlayer()
| virtual bool AllMapScript::CanSendObjectUpdatesToPlayer |
( |
Map * |
, |
|
|
Player * |
|
|
) |
| |
|
inlinevirtual |
This hook is called before the map sends its pending object update packets to a player.
- Parameters
-
| map | Contains information about the Map |
| player | Contains information about the Player |
- Returns
- True to send the updates, false to discard them for this player
Referenced by ScriptMgr::CanSendObjectUpdatesToPlayer().
◆ 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 |
Referenced by ScriptMgr::OnBeforeCreateInstanceScript().
◆ OnCreateMap()
| virtual void AllMapScript::OnCreateMap |
( |
Map * |
| ) |
|
|
inlinevirtual |
◆ OnDestroyInstance()
◆ OnDestroyMap()
| virtual void AllMapScript::OnDestroyMap |
( |
Map * |
| ) |
|
|
inlinevirtual |
◆ 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 |
Referenced by ScriptMgr::OnMapUpdate().
◆ OnPlayerEnterAll()
| virtual void AllMapScript::OnPlayerEnterAll |
( |
Map * |
, |
|
|
Player * |
|
|
) |
| |
|
inlinevirtual |
◆ OnPlayerLeaveAll()
| virtual void AllMapScript::OnPlayerLeaveAll |
( |
Map * |
, |
|
|
Player * |
|
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following files: