TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldMapScript Class Reference

#include <ScriptMgr.h>

Protected Member Functions

 WorldMapScript (const char *name, uint32 mapId)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 
- Protected Member Functions inherited from MapScript< Map >
 MapScript (uint32 mapId)
 
- Protected Member Functions inherited from UpdatableScript< Map >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Additional Inherited Members

- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 
- Public Member Functions inherited from MapScript< Map >
MapEntry constGetEntry ()
 
virtual void OnCreate (Map *)
 
virtual void OnDestroy (Map *)
 
virtual void OnLoadGridMap (Map *, GridMap *, uint32, uint32)
 
virtual void OnUnloadGridMap (Map *, GridMap *, uint32, uint32)
 
virtual void OnPlayerEnter (Map *, Player *)
 
virtual void OnPlayerLeave (Map *, Player *)
 
- Public Member Functions inherited from UpdatableScript< Map >
virtual void OnUpdate (Map *, uint32)
 

Constructor & Destructor Documentation

WorldMapScript::WorldMapScript ( const char *  name,
uint32  mapId 
)
protected
1554  : ScriptObject(name), MapScript<Map>(mapId)
1555 {
1556  if (GetEntry() && !GetEntry()->IsWorldMap())
1557  TC_LOG_ERROR("scripts", "WorldMapScript for map %u is invalid.", mapId);
1558 
1560 }
MapEntry const * GetEntry()
Definition: ScriptMgr.h:312
bool IsWorldMap() const
Definition: DBCStructure.h:864
static void AddScript(TScript *const script, bool addToDeleteContainer=true)
Definition: ScriptMgr.cpp:111
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
ScriptObject(const char *name)
Definition: ScriptMgr.h:159

+ Here is the call graph for this function:


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