AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AllMapScript Class Reference

#include "ScriptMgr.h"

Inheritance diagram for AllMapScript:
ScriptObject

Public Member Functions

virtual void OnPlayerEnterAll (Map *, Player *)
 This hook called when a player enters any Map. More...
 
virtual void OnPlayerLeaveAll (Map *, Player *)
 This hook called when a player leave any Map. More...
 
virtual void OnBeforeCreateInstanceScript (InstanceMap *, InstanceScript *, bool, std::string, uint32)
 This hook called before create instance script. More...
 
virtual void OnDestroyInstance (MapInstanced *, Map *)
 This hook called before destroy instance. More...
 
virtual void OnCreateMap (Map *)
 This hook called before creating map. More...
 
virtual void OnDestroyMap (Map *)
 This hook called before destroing map. More...
 
virtual void OnMapUpdate (Map *, uint32)
 This hook called before updating map. More...
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 

Protected Member Functions

 AllMapScript (const char *name)
 
More...
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ AllMapScript()

AllMapScript::AllMapScript ( const char *  name)
protected

293 : ScriptObject(name)
294{
296}
Definition: ScriptMgr.h:107
static void AddScript(TScript *const script)
Definition: ScriptMgr.h:2708

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ OnBeforeCreateInstanceScript()

virtual void AllMapScript::OnBeforeCreateInstanceScript ( InstanceMap ,
InstanceScript ,
bool  ,
std::string  ,
uint32   
)
inlinevirtual

This hook called before create instance script.

Parameters
instanceMapContains information about the WorldSession
instanceDataContains information about the WorldPacket
loadif true loading instance save data
dataContains information about the instance save data
completedEncounterMaskContains information about the completed encouter mask
515{ }

Referenced by ScriptMgr::OnBeforeCreateInstanceScript().

◆ OnCreateMap()

virtual void AllMapScript::OnCreateMap ( Map )
inlinevirtual

This hook called before creating map.

Parameters
mapContains information about the Map
530{ }

Referenced by ScriptMgr::OnCreateMap().

◆ OnDestroyInstance()

virtual void AllMapScript::OnDestroyInstance ( MapInstanced ,
Map  
)
inlinevirtual

This hook called before destroy instance.

Parameters
mapInstancedContains information about the MapInstanced
mapContains information about the Map
523{ }

Referenced by ScriptMgr::OnDestroyInstance().

◆ OnDestroyMap()

virtual void AllMapScript::OnDestroyMap ( Map )
inlinevirtual

This hook called before destroing map.

Parameters
mapContains information about the Map
537{ }

Referenced by ScriptMgr::OnDestroyMap().

◆ OnMapUpdate()

virtual void AllMapScript::OnMapUpdate ( Map ,
uint32   
)
inlinevirtual

This hook called before updating map.

Parameters
mapContains information about the Map
diffContains information about the diff time
545{ }

Referenced by ScriptMgr::OnMapUpdate().

◆ OnPlayerEnterAll()

virtual void AllMapScript::OnPlayerEnterAll ( Map ,
Player  
)
inlinevirtual

This hook called when a player enters any Map.

Parameters
mapContains information about the Map
playerContains information about the Player
496{ }

Referenced by ScriptMgr::OnPlayerEnterMap().

◆ OnPlayerLeaveAll()

virtual void AllMapScript::OnPlayerLeaveAll ( Map ,
Player  
)
inlinevirtual

This hook called when a player leave any Map.

Parameters
mapContains information about the Map
playerContains information about the Player
504{ }

Referenced by ScriptMgr::OnPlayerLeaveMap().