diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/ObjectMgr.cpp | 9 | ||||
-rw-r--r-- | src/game/ObjectMgr.h | 2 | ||||
-rw-r--r-- | src/shared/Database/DBCStores.cpp | 4 | ||||
-rw-r--r-- | src/shared/Database/DBCStores.h | 3 | ||||
-rw-r--r-- | src/shared/revision_nr.h | 2 |
5 files changed, 18 insertions, 2 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index fe547522a88..f4b3897eef8 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -7641,3 +7641,12 @@ void ObjectMgr::LoadTransportEvents() delete result; } +CreatureInfo const* GetCreatureTemplateStore(uint32 entry) +{ + return sCreatureStorage.LookupEntry<CreatureInfo>(entry); +} + +Quest const* GetQuestTemplateStore(uint32 entry) +{ + return objmgr.GetQuestTemplate(entry); +} diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index e766d6a5404..ab17c281a9c 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -924,6 +924,8 @@ TRINITY_DLL_SPEC uint32 GetScriptId(const char *name); TRINITY_DLL_SPEC ObjectMgr::ScriptNameMap& GetScriptNames(); TRINITY_DLL_SPEC GameObjectInfo const *GetGameObjectInfo(uint32 id); TRINITY_DLL_SPEC CreatureInfo const *GetCreatureInfo(uint32 id); +TRINITY_DLL_SPEC CreatureInfo const* GetCreatureTemplateStore(uint32 entry); +TRINITY_DLL_SPEC Quest const* GetQuestTemplateStore(uint32 entry); #endif diff --git a/src/shared/Database/DBCStores.cpp b/src/shared/Database/DBCStores.cpp index 8890ad0eb1e..54e71d2cbf0 100644 --- a/src/shared/Database/DBCStores.cpp +++ b/src/shared/Database/DBCStores.cpp @@ -709,4 +709,6 @@ uint32 const* GetTalentTabPages(uint32 cls) TRINITY_DLL_SPEC DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore() { return &sSoundEntriesStore; } TRINITY_DLL_SPEC DBCStorage <SpellEntry> const* GetSpellStore() { return &sSpellStore; } TRINITY_DLL_SPEC DBCStorage <SpellRangeEntry> const* GetSpellRangeStore() { return &sSpellRangeStore; } - +TRINITY_DLL_SPEC DBCStorage <FactionEntry> const* GetFactionStore() { return &sFactionStore; } +TRINITY_DLL_SPEC DBCStorage <ItemEntry> const* GetItemDisplayStore() { return &sItemStore; } +TRINITY_DLL_SPEC DBCStorage <CreatureDisplayInfoEntry> const* GetCreatureDisplayStore() { return &sCreatureDisplayInfoStore; } diff --git a/src/shared/Database/DBCStores.h b/src/shared/Database/DBCStores.h index 8a7ee02cc95..6b5f5990eea 100644 --- a/src/shared/Database/DBCStores.h +++ b/src/shared/Database/DBCStores.h @@ -220,5 +220,8 @@ void LoadDBCStores(const std::string& dataPath); TRINITY_DLL_SPEC DBCStorage <SoundEntriesEntry> const* GetSoundEntriesStore(); TRINITY_DLL_SPEC DBCStorage <SpellEntry> const* GetSpellStore(); TRINITY_DLL_SPEC DBCStorage <SpellRangeEntry> const* GetSpellRangeStore(); +TRINITY_DLL_SPEC DBCStorage <FactionEntry> const* GetFactionStore(); +TRINITY_DLL_SPEC DBCStorage <ItemEntry> const* GetItemDisplayStore(); +TRINITY_DLL_SPEC DBCStorage <CreatureDisplayInfoEntry> const* GetCreatureDisplayStore(); #endif diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 71c1b309dce..caca4e0642d 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7294" + #define REVISION_NR "7295" #endif // __REVISION_NR_H__ |