aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-05 15:38:24 -0600
committermegamage <none@none>2009-02-05 15:38:24 -0600
commit2aff5260eada5a9a03a56ebce91f775105d7c92b (patch)
tree7721dc143492f4504de6d617d0954ebc07383b68 /src/game
parent649ab47d5467dde5ee5f749dad742fd0ca349a4d (diff)
*Allow scripts to override SQL and DBC data.
--HG-- branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r--src/game/ObjectMgr.cpp10
-rw-r--r--src/game/ObjectMgr.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index e62e7af0617..08fcc059b8b 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -7553,6 +7553,16 @@ ObjectMgr::ScriptNameMap & GetScriptNames()
return objmgr.GetScriptNames();
}
+GameObjectInfo const *GetGameObjectInfo(uint32 id)
+{
+ return objmgr.GetGameObjectInfo(id);
+}
+
+CreatureInfo const *GetCreatureInfo(uint32 id)
+{
+ return objmgr.GetCreatureTemplate(id);
+}
+
void ObjectMgr::LoadTransportEvents()
{
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h
index cf1659cac42..a6c2ecbbdf2 100644
--- a/src/game/ObjectMgr.h
+++ b/src/game/ObjectMgr.h
@@ -944,5 +944,7 @@ TRINITY_DLL_SPEC bool LoadTrinityStrings(DatabaseType& db, char const* table,int
TRINITY_DLL_SPEC uint32 GetAreaTriggerScriptId(uint32 trigger_id);
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);
#endif