mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +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;
|
return CGUnit::GetBaseOffsetSaved() + 123;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t CGUnit::GetDisplayID() const {
|
||||||
|
return this->Unit()->displayID;
|
||||||
|
}
|
||||||
|
|
||||||
CGUnitData* CGUnit::Unit() const {
|
CGUnitData* CGUnit::Unit() const {
|
||||||
return this->m_unit;
|
return this->m_unit;
|
||||||
}
|
}
|
||||||
@@ -82,6 +82,9 @@ class CGUnit {
|
|||||||
static uint32_t TotalFields();
|
static uint32_t TotalFields();
|
||||||
static uint32_t TotalFieldsSaved();
|
static uint32_t TotalFieldsSaved();
|
||||||
|
|
||||||
|
// Public member functions
|
||||||
|
int32_t GetDisplayID() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Protected member variables
|
// Protected member variables
|
||||||
CGUnitData* m_unit;
|
CGUnitData* m_unit;
|
||||||
|
|||||||
Reference in new issue
Block a user