Allow name billboards to be toggled (#1026)

* Allow name billboards to be toggled

* Allow name billboards to be toggled

* Add comments

* Move logic to Character

* Use Entity in Character instead
This commit is contained in:
David Markowitz
2023-03-23 07:49:31 -07:00
committed by GitHub
parent 7671cc6865
commit b967cc57d1
8 changed files with 77 additions and 0 deletions

View File

@@ -451,6 +451,10 @@ public:
*/
void SetIsFlying(bool isFlying) { m_IsFlying = isFlying; }
bool GetBillboardVisible() { return m_BillboardVisible; }
void SetBillboardVisible(bool visible);
private:
/**
* The ID of this character. First 32 bits of the ObjectID.
@@ -652,6 +656,11 @@ private:
*/
bool m_IsFlying = false;
/**
* True if billboard (referred to as nameplate for end users) is visible, false otherwise
*/
bool m_BillboardVisible = true;
/**
* Queries the character XML and updates all the fields of this object
* NOTE: quick as there's no DB lookups