diff options
author | megamage <none@none> | 2009-05-31 21:04:04 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-31 21:04:04 -0500 |
commit | 76e4dfe8dda50e61dd2ca5a9a241f14d8823cfeb (patch) | |
tree | c0975adb9df19c04f2cd26baa17ba1cff3760139 /src/game/GameObject.h | |
parent | 5034078d49f9a29d9a7e7d891b12d1706ddab44a (diff) |
*Store creatureData and goData for creatures and gos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.h')
-rw-r--r-- | src/game/GameObject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/GameObject.h b/src/game/GameObject.h index e1693e0bdbe..7e42d0684c4 100644 --- a/src/game/GameObject.h +++ b/src/game/GameObject.h @@ -471,7 +471,8 @@ class TRINITY_DLL_SPEC GameObject : public WorldObject bool Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMask, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 ArtKit = 0); void Update(uint32 p_time); static GameObject* GetGameObject(WorldObject& object, uint64 guid); - GameObjectInfo const* GetGOInfo() const; + GameObjectInfo const* GetGOInfo() const { return m_goInfo; } + GameObjectData const* GetGOData() const { return m_goData; } bool IsTransport() const; @@ -663,6 +664,7 @@ class TRINITY_DLL_SPEC GameObject : public WorldObject uint32 m_DBTableGuid; ///< For new or temporary gameobjects is 0 for saved it is lowguid GameObjectInfo const* m_goInfo; + GameObjectData const* m_goData; GameObjectValue * const m_goValue; private: void SwitchDoorOrButton(bool activate, bool alternative = false); |