119 if (it->second == script)
121 TC_LOG_ERROR(
"scripts",
"Script '%s' has same memory pointer as '%s'.",
122 script->GetName().c_str(), it->second->GetName().c_str());
129 if (addToDeleteContainer)
static ScriptMap ScriptPointerList
Definition: ScriptMgr.cpp:108
static void AddScript(TScript *const script, bool addToDeleteContainer=true)
Definition: ScriptMgr.cpp:111
ScriptMap::iterator ScriptMapIterator
Definition: ScriptMgr.cpp:104
static std::vector< TScript * > Scripts
Definition: ScriptMgr.cpp:109
#define ASSERT
Definition: Errors.h:55
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
Definition: ScriptMgr.cpp:46
154 bool existing =
false;
158 if (it->second->GetName() == script->GetName())
181 TC_LOG_ERROR(
"scripts",
"Script '%s' already assigned with the same script name, so the script can't work.",
182 script->GetName().c_str());
190 TC_LOG_ERROR(
"sql.sql",
"Script named '%s' does not have a script name assigned in database.", script->GetName().c_str());
static ScriptMap ScriptPointerList
Definition: ScriptMgr.cpp:108
#define sObjectMgr
Definition: ObjectMgr.h:1567
uint32_t uint32
Definition: Define.h:150
ScriptMap::iterator ScriptMapIterator
Definition: ScriptMgr.cpp:104
#define ABORT
Definition: Errors.h:56
#define sScriptMgr
Definition: ScriptMgr.h:837
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
UnusedScriptNamesContainer UnusedScriptNames
Definition: ScriptMgr.cpp:40
static uint32 _scriptIdCounter
Definition: ScriptMgr.cpp:203
static ScriptMap ScriptPointerList
Definition: ScriptMgr.cpp:108
#define sScriptMgr
Definition: ScriptMgr.h:837
static ScriptMap ScriptPointerList
Definition: ScriptMgr.cpp:108
arena_t NULL
Definition: jemalloc_internal.h:624
ScriptMap::iterator ScriptMapIterator
Definition: ScriptMgr.cpp:104
The documentation for this class was generated from the following file: