*Save/load wintergrasp building health when grid loaded/unloaded.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-01 23:45:55 -05:00
parent d0878ec414
commit 77889ffa8b
3 changed files with 42 additions and 29 deletions
+3 -2
View File
@@ -361,7 +361,7 @@ struct GameObjectInfo
uint32 unk8;
uint32 destroyedEventId; //9
uint32 destroyedDisplayId; //10
} destructibleBuilding;
} building;
//34 GAMEOBJECT_TYPE_GUILDBANK - empty
//35 GAMEOBJECT_TYPE_TRAPDOOR
struct
@@ -393,7 +393,7 @@ union GameObjectValue
struct
{
uint32 health;
}destructibleBuilding;
}building;
};
// GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
@@ -473,6 +473,7 @@ class TRINITY_DLL_SPEC GameObject : public WorldObject
static GameObject* GetGameObject(WorldObject& object, uint64 guid);
GameObjectInfo const* GetGOInfo() const { return m_goInfo; }
GameObjectData const* GetGOData() const { return m_goData; }
GameObjectValue * GetGOValue() const { return m_goValue; }
bool IsTransport() const;