mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 07:09:53 +03:00
feat(object): add CGUnit::GetDisplayID
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -25,6 +25,10 @@ uint32_t CGUnit::TotalFieldsSaved() {
|
||||
return CGUnit::GetBaseOffsetSaved() + 123;
|
||||
}
|
||||
|
||||
int32_t CGUnit::GetDisplayID() const {
|
||||
return this->Unit()->displayID;
|
||||
}
|
||||
|
||||
CGUnitData* CGUnit::Unit() const {
|
||||
return this->m_unit;
|
||||
}
|
||||
@@ -82,6 +82,9 @@ class CGUnit {
|
||||
static uint32_t TotalFields();
|
||||
static uint32_t TotalFieldsSaved();
|
||||
|
||||
// Public member functions
|
||||
int32_t GetDisplayID() const;
|
||||
|
||||
protected:
|
||||
// Protected member variables
|
||||
CGUnitData* m_unit;
|
||||
|
||||
Reference in new issue
Block a user