feat(object): add CGObject::GetGUID

This commit is contained in:
fallenoak 2026-02-01 13:03:52 -06:00
parent 0cf12c9c90
commit e7abae1102
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 7 additions and 0 deletions

View File

@ -23,3 +23,7 @@ uint32_t CGObject::TotalFields() {
uint32_t CGObject::TotalFieldsSaved() {
return CGObject::GetBaseOffsetSaved() + 3;
}
WOWGUID CGObject::GetGUID() const {
return this->m_obj->m_guid;
}

View File

@ -29,6 +29,9 @@ class CGObject {
uint32_t* m_objSaved;
uint32_t m_memHandle;
OBJECT_TYPE_ID m_typeID;
// Public member functions
WOWGUID GetGUID() const;
};
#endif