mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(object): add CGObject_C::SetObjectLocked
This commit is contained in:
parent
a1541725f2
commit
ca3888f38e
@ -50,6 +50,18 @@ void CGObject_C::SetDisablePending(int32_t pending) {
|
||||
}
|
||||
}
|
||||
|
||||
void CGObject_C::SetObjectLocked(int32_t locked) {
|
||||
if (locked) {
|
||||
if (this->m_lockCount != 0xFFFF) {
|
||||
this->m_lockCount++;
|
||||
}
|
||||
} else {
|
||||
if (this->m_lockCount != 0) {
|
||||
this->m_lockCount--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CGObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||
this->m_obj = reinterpret_cast<CGObjectData*>(&storage[CGObject::GetBaseOffset()]);
|
||||
this->m_objSaved = &saved[CGObject::GetBaseOffsetSaved()];
|
||||
|
||||
@ -29,6 +29,7 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
|
||||
void Reenable();
|
||||
void SetBlock(uint32_t block, uint32_t value);
|
||||
void SetDisablePending(int32_t pending);
|
||||
void SetObjectLocked(int32_t locked);
|
||||
void SetStorage(uint32_t* storage, uint32_t* saved);
|
||||
void SetTypeID(OBJECT_TYPE_ID typeID);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user