From d2534172336076053997833c24830e90b97da91e Mon Sep 17 00:00:00 2001 From: fallenoak Date: Wed, 11 Feb 2026 22:33:39 -0600 Subject: [PATCH] feat(object): add CGUnit::GetNativeDisplayID --- src/object/client/CGUnit.cpp | 4 ++++ src/object/client/CGUnit.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/src/object/client/CGUnit.cpp b/src/object/client/CGUnit.cpp index 3474606..223407b 100644 --- a/src/object/client/CGUnit.cpp +++ b/src/object/client/CGUnit.cpp @@ -29,6 +29,10 @@ int32_t CGUnit::GetDisplayID() const { return this->Unit()->displayID; } +int32_t CGUnit::GetNativeDisplayID() const { + return this->Unit()->nativeDisplayID; +} + CGUnitData* CGUnit::Unit() const { return this->m_unit; } diff --git a/src/object/client/CGUnit.hpp b/src/object/client/CGUnit.hpp index 631f7ca..f34c268 100644 --- a/src/object/client/CGUnit.hpp +++ b/src/object/client/CGUnit.hpp @@ -84,6 +84,7 @@ class CGUnit { // Public member functions int32_t GetDisplayID() const; + int32_t GetNativeDisplayID() const; protected: // Protected member variables