feat(object): add CGObject::IsA

This commit is contained in:
fallenoak committed 2026-02-05 13:26:59 -06:00
1 parent aa22dd952a
commit aac8cf0855
2 files changed
+5

No files matched your search

+4
View File
@@ -36,6 +36,10 @@ OBJECT_TYPE_ID CGObject::GetTypeID() const {
return this->m_typeID;
}
int32_t CGObject::IsA(OBJECT_TYPE type) const {
return (this->GetType() & type) != 0;
}
CGObjectData* CGObject::Obj() const {
return this->m_obj;
}
+1
View File
@@ -31,6 +31,7 @@ class CGObject {
WOWGUID GetGUID() const;
OBJECT_TYPE GetType() const;
OBJECT_TYPE_ID GetTypeID() const;
int32_t IsA(OBJECT_TYPE type) const;
protected:
// Protected member variables