diff options
| author | megamage <none@none> | 2009-05-15 16:41:36 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-15 16:41:36 -0500 |
| commit | f5af5ea9e3b12cf920c989484776ad57f44c39ed (patch) | |
| tree | 50615588c874160d10a2faa8ae6d9cf0f0a5ee56 /src/game/ObjectMgr.h | |
| parent | 15c78a728e08ce95999b980ce7572092bc0a75cb (diff) | |
[7834] Mangos string loading code cleanups. Author: VladimirMangos
* Better integration creature event ai strings.
* Not inclide in checks as expected max mangos strings range value to range
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.h')
| -rw-r--r-- | src/game/ObjectMgr.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index 3fe373f6a34..33915398c91 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -133,10 +133,12 @@ typedef UNORDERED_MAP<uint64/*(instance,guid) pair*/,time_t> RespawnTimes; // mangos string ranges -#define MIN_TRINITY_STRING_ID 1 -#define MAX_TRINITY_STRING_ID 2000000000 -#define MIN_DB_SCRIPT_STRING_ID MAX_TRINITY_STRING_ID -#define MAX_DB_SCRIPT_STRING_ID 2000010000 +#define MIN_TRINITY_STRING_ID 1 // 'mangos_string' +#define MAX_TRINITY_STRING_ID 2000000000 +#define MIN_DB_SCRIPT_STRING_ID MAX_TRINITY_STRING_ID // 'db_script_string' +#define MAX_DB_SCRIPT_STRING_ID 2000010000 +#define MIN_CREATURE_AI_TEXT_STRING_ID (-1) // 'creature_ai_texts' +#define MAX_CREATURE_AI_TEXT_STRING_ID (-1000000) struct TrinityStringLocale { @@ -942,7 +944,7 @@ class ObjectMgr #define objmgr Trinity::Singleton<ObjectMgr>::Instance() // scripting access functions -TRINITY_DLL_SPEC bool LoadTrinityStrings(DatabaseType& db, char const* table,int32 start_value = -1, int32 end_value = std::numeric_limits<int32>::min()); +TRINITY_DLL_SPEC bool LoadTrinityStrings(DatabaseType& db, char const* table,int32 start_value = MAX_CREATURE_AI_TEXT_STRING_ID, int32 end_value = std::numeric_limits<int32>::min()); TRINITY_DLL_SPEC uint32 GetAreaTriggerScriptId(uint32 trigger_id); TRINITY_DLL_SPEC uint32 GetScriptId(const char *name); TRINITY_DLL_SPEC ObjectMgr::ScriptNameMap& GetScriptNames(); |
