TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ScriptMgr.cpp File Reference
#include "ScriptMgr.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "DBCStores.h"
#include "ObjectMgr.h"
#include "OutdoorPvPMgr.h"
#include "ScriptSystem.h"
#include "Transport.h"
#include "Vehicle.h"
#include "SmartAI.h"
#include "SpellInfo.h"
#include "SpellScript.h"
#include "GossipDef.h"
#include "CreatureAIImpl.h"
#include "Player.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include "Chat.h"
+ Include dependency graph for ScriptMgr.cpp:

Classes

struct  is_script_database_bound< typename >
 
struct  is_script_database_bound< SpellScriptLoader >
 
struct  is_script_database_bound< InstanceMapScript >
 
struct  is_script_database_bound< ItemScript >
 
struct  is_script_database_bound< CreatureScript >
 
struct  is_script_database_bound< GameObjectScript >
 
struct  is_script_database_bound< AreaTriggerScript >
 
struct  is_script_database_bound< BattlegroundScript >
 
struct  is_script_database_bound< OutdoorPvPScript >
 
struct  is_script_database_bound< WeatherScript >
 
struct  is_script_database_bound< ConditionScript >
 
struct  is_script_database_bound< TransportScript >
 
struct  is_script_database_bound< AchievementCriteriaScript >
 
class  ScriptRegistry< TScript >
 
struct  TSpellSummary
 

Macros

#define SCR_REG_MAP(T)   ScriptRegistry<T>::ScriptMap
 
#define SCR_REG_ITR(T)   ScriptRegistry<T>::ScriptMapIterator
 
#define SCR_REG_LST(T)   ScriptRegistry<T>::ScriptPointerList
 
#define SCR_REG_VEC(T)   ScriptRegistry<T>::Scripts
 
#define FOR_SCRIPTS(T, C, E)
 
#define FOR_SCRIPTS_RET(T, C, E, R)
 
#define FOREACH_SCRIPT(T)
 
#define GET_SCRIPT(T, I, V)
 
#define GET_SCRIPT_RET(T, I, V, R)
 
#define SCR_CLEAR(T)
 
#define SCR_MAP_BGN(M, V, I, E, C, T)
 
#define SCR_MAP_END
 

Variables

UnusedScriptNamesContainer UnusedScriptNames
 
struct TSpellSummarySpellSummary
 
template class TC_GAME_API ScriptRegistry< SpellScriptLoader >
 
template class TC_GAME_API ScriptRegistry< ServerScript >
 
template class TC_GAME_API ScriptRegistry< WorldScript >
 
template class TC_GAME_API ScriptRegistry< FormulaScript >
 
template class TC_GAME_API ScriptRegistry< WorldMapScript >
 
template class TC_GAME_API ScriptRegistry< InstanceMapScript >
 
template class TC_GAME_API ScriptRegistry< BattlegroundMapScript >
 
template class TC_GAME_API ScriptRegistry< ItemScript >
 
template class TC_GAME_API ScriptRegistry< CreatureScript >
 
template class TC_GAME_API ScriptRegistry< GameObjectScript >
 
template class TC_GAME_API ScriptRegistry< AreaTriggerScript >
 
template class TC_GAME_API ScriptRegistry< BattlegroundScript >
 
template class TC_GAME_API ScriptRegistry< OutdoorPvPScript >
 
template class TC_GAME_API ScriptRegistry< CommandScript >
 
template class TC_GAME_API ScriptRegistry< WeatherScript >
 
template class TC_GAME_API ScriptRegistry< AuctionHouseScript >
 
template class TC_GAME_API ScriptRegistry< ConditionScript >
 
template class TC_GAME_API ScriptRegistry< VehicleScript >
 
template class TC_GAME_API ScriptRegistry< DynamicObjectScript >
 
template class TC_GAME_API ScriptRegistry< TransportScript >
 
template class TC_GAME_API ScriptRegistry< AchievementCriteriaScript >
 
template class TC_GAME_API ScriptRegistry< PlayerScript >
 
template class TC_GAME_API ScriptRegistry< GuildScript >
 
template class TC_GAME_API ScriptRegistry< GroupScript >
 
template class TC_GAME_API ScriptRegistry< UnitScript >
 
template class TC_GAME_API ScriptRegistry< AccountScript >
 

Macro Definition Documentation

#define FOR_SCRIPTS (   T,
  C,
 
)
Value:
if (SCR_REG_LST(T).empty()) \
return; \
for (SCR_REG_ITR(T) C = SCR_REG_LST(T).begin(); \
C != SCR_REG_LST(T).end(); ++C)
#define SCR_REG_ITR(T)
Definition: ScriptMgr.cpp:208
#define SCR_REG_LST(T)
Definition: ScriptMgr.cpp:209
#define FOR_SCRIPTS_RET (   T,
  C,
  E,
 
)
Value:
if (SCR_REG_LST(T).empty()) \
return R; \
for (SCR_REG_ITR(T) C = SCR_REG_LST(T).begin(); \
C != SCR_REG_LST(T).end(); ++C)
#define SCR_REG_ITR(T)
Definition: ScriptMgr.cpp:208
#define SCR_REG_LST(T)
Definition: ScriptMgr.cpp:209
#define FOREACH_SCRIPT (   T)
Value:
FOR_SCRIPTS(T, itr, end) \
itr->second
#define FOR_SCRIPTS(T, C, E)
Definition: ScriptMgr.cpp:213
#define GET_SCRIPT (   T,
  I,
 
)
Value:
if (!V) \
return;
#define I(x, y, z)
static TScript * GetScriptById(uint32 id)
Definition: ScriptMgr.cpp:134
#define GET_SCRIPT_RET (   T,
  I,
  V,
 
)
Value:
if (!V) \
return R;
#define I(x, y, z)
static TScript * GetScriptById(uint32 id)
Definition: ScriptMgr.cpp:134
#define SCR_CLEAR (   T)
Value:
for (T* scr : SCR_REG_VEC(T)) \
delete scr; \
SCR_REG_VEC(T).clear();
#define SCR_REG_VEC(T)
Definition: ScriptMgr.cpp:210
#define SCR_MAP_BGN (   M,
  V,
  I,
  E,
  C,
 
)
Value:
if (V->GetEntry() && V->GetEntry()->T()) \
{ \
FOR_SCRIPTS(M, I, E) \
{ \
MapEntry const* C = I->second->GetEntry(); \
if (!C) \
continue; \
if (C->ID == V->GetId()) \
{
#define I(x, y, z)
#define FOR_SCRIPTS(T, C, E)
Definition: ScriptMgr.cpp:213
#define SCR_MAP_END
Value:
return; \
} \
} \
}
#define SCR_REG_ITR (   T)    ScriptRegistry<T>::ScriptMapIterator
#define SCR_REG_LST (   T)    ScriptRegistry<T>::ScriptPointerList
#define SCR_REG_MAP (   T)    ScriptRegistry<T>::ScriptMap
#define SCR_REG_VEC (   T)    ScriptRegistry<T>::Scripts

Variable Documentation

struct TSpellSummary * SpellSummary
UnusedScriptNamesContainer UnusedScriptNames