Skip to content

Commit

Permalink
Add set and get faction for GameObjects
Browse files Browse the repository at this point in the history
Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
xfurry committed Jan 7, 2018
1 parent 985f40a commit 63cf8b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/Entities/GameObject.h
Expand Up @@ -720,6 +720,8 @@ class GameObject : public WorldObject
uint32 GetDisplayId() const { return GetUInt32Value(GAMEOBJECT_DISPLAYID); }
void SetDisplayId(uint32 modelId);
void SetPhaseMask(uint32 newPhaseMask, bool update);
uint32 GetFaction() const { return GetUInt32Value(GAMEOBJECT_FACTION); }
void SetFaction(uint32 faction) { SetUInt32Value(GAMEOBJECT_FACTION, faction); }

float GetObjectBoundingRadius() const override; // overwrite WorldObject version

Expand Down

0 comments on commit 63cf8b0

Please sign in to comment.