mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-11 00:44:13 +03:00
feat(object): add CGObject::IsExactlyA
This commit is contained in:
2 files changed
+5
No files matched your search
@@ -40,6 +40,10 @@ int32_t CGObject::IsA(OBJECT_TYPE type) const {
|
||||
return (this->GetType() & type) != 0;
|
||||
}
|
||||
|
||||
int32_t CGObject::IsExactlyA(OBJECT_TYPE_ID typeID) const {
|
||||
return this->m_typeID == typeID;
|
||||
}
|
||||
|
||||
CGObjectData* CGObject::Obj() const {
|
||||
return this->m_obj;
|
||||
}
|
||||
@@ -32,6 +32,7 @@ class CGObject {
|
||||
OBJECT_TYPE GetType() const;
|
||||
OBJECT_TYPE_ID GetTypeID() const;
|
||||
int32_t IsA(OBJECT_TYPE type) const;
|
||||
int32_t IsExactlyA(OBJECT_TYPE_ID typeID) const;
|
||||
|
||||
protected:
|
||||
// Protected member variables
|
||||
|
||||
Reference in new issue
Block a user