feat(object): add CGUnit::GetDisplayID

This commit is contained in:
fallenoak 2026-02-11 22:21:17 -06:00
parent 5a69128f63
commit 0f7f0207ee
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 7 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;