TrinityCore
MapScript< TMap > Class Template Reference

#include <ScriptMgr.h>

Public Member Functions

MapEntry const * GetEntry () const
 
virtual void OnCreate (TMap *map)
 
virtual void OnDestroy (TMap *map)
 
virtual void OnPlayerEnter (TMap *map, Player *player)
 
virtual void OnPlayerLeave (TMap *map, Player *player)
 
virtual void OnUpdate (TMap *map, uint32 diff)
 

Protected Member Functions

 MapScript (MapEntry const *mapEntry)
 

Private Attributes

MapEntry const * _mapEntry
 

Detailed Description

template<class TMap>
class MapScript< TMap >

Definition at line 313 of file ScriptMgr.h.

Constructor & Destructor Documentation

◆ MapScript()

template<class TMap >
MapScript< TMap >::MapScript ( MapEntry const *  mapEntry)
explicitprotected

Definition at line 2499 of file ScriptMgr.cpp.

Member Function Documentation

◆ GetEntry()

template<class TMap >
MapEntry const * MapScript< TMap >::GetEntry

Definition at line 2504 of file ScriptMgr.cpp.

◆ OnCreate()

template<class TMap >
void MapScript< TMap >::OnCreate ( TMap *  map)
virtual

Reimplemented in SplitByFactionMapScript.

Definition at line 2510 of file ScriptMgr.cpp.

◆ OnDestroy()

template<class TMap >
void MapScript< TMap >::OnDestroy ( TMap *  map)
virtual

Definition at line 2515 of file ScriptMgr.cpp.

◆ OnPlayerEnter()

template<class TMap >
void MapScript< TMap >::OnPlayerEnter ( TMap *  map,
Player player 
)
virtual

Definition at line 2520 of file ScriptMgr.cpp.

◆ OnPlayerLeave()

template<class TMap >
void MapScript< TMap >::OnPlayerLeave ( TMap *  map,
Player player 
)
virtual

Definition at line 2525 of file ScriptMgr.cpp.

◆ OnUpdate()

template<class TMap >
void MapScript< TMap >::OnUpdate ( TMap *  map,
uint32  diff 
)
virtual

Definition at line 2530 of file ScriptMgr.cpp.

Member Data Documentation

◆ _mapEntry

template<class TMap >
MapEntry const* MapScript< TMap >::_mapEntry
private

Definition at line 315 of file ScriptMgr.h.


The documentation for this class was generated from the following files: