From afb329c42d6907b4860df8507025bf82b09919a8 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Wed, 11 Feb 2026 22:39:24 -0600 Subject: [PATCH] feat(object): add CGUnit_C::GetLocalDisplayID --- src/object/client/CGUnit_C.cpp | 4 ++++ src/object/client/CGUnit_C.hpp | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/object/client/CGUnit_C.cpp b/src/object/client/CGUnit_C.cpp index 52ad0b8..531b408 100644 --- a/src/object/client/CGUnit_C.cpp +++ b/src/object/client/CGUnit_C.cpp @@ -115,6 +115,10 @@ int32_t CGUnit_C::CanBeTargetted() { return this->CanHighlight(); } +int32_t CGUnit_C::GetLocalDisplayID() const { + return this->m_localDisplayID; +} + CreatureModelDataRec* CGUnit_C::GetModelData() const { // TODO return nullptr; diff --git a/src/object/client/CGUnit_C.hpp b/src/object/client/CGUnit_C.hpp index 8df4b75..2d5e67f 100644 --- a/src/object/client/CGUnit_C.hpp +++ b/src/object/client/CGUnit_C.hpp @@ -31,10 +31,17 @@ class CGUnit_C : public CGObject_C, public CGUnit { // Public member functions CGUnit_C(uint32_t time, CClientObjCreate& objCreate); + int32_t GetLocalDisplayID() const; CreatureModelDataRec* GetModelData() const; void PostInit(uint32_t time, const CClientObjCreate& init, bool a4); void PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover); void SetStorage(uint32_t* storage, uint32_t* saved); + + private: + // Private member variables + // TODO + int32_t m_localDisplayID = 0; + // TODO }; #endif