feat(object): implement CGObject_C::SetDisablePending

This commit is contained in:
fallenoak committed 2026-01-15 15:57:17 -06:00
1 parent 8a062e5631
commit 361d327f30
2 files changed
+21 -1

No files matched your search

+14 -1
View File
@@ -4,6 +4,15 @@
CGObject_C::CGObject_C(uint32_t time, CClientObjCreate& objCreate) {
// TODO
this->m_lockCount = 0;
this->m_disabled = 0;
this->m_inReenable = 0;
this->m_postInited = 0;
this->m_flag19 = 0;
this->m_disablePending = 0;
// TODO
ClntObjMgrLinkInNewObject(this);
// TODO
@@ -23,7 +32,11 @@ void CGObject_C::SetBlock(uint32_t block, uint32_t value) {
}
void CGObject_C::SetDisablePending(int32_t pending) {
// TODO
if (pending) {
this->m_disablePending = true;
} else {
this->m_disablePending = false;
}
}
void CGObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {
+7
View File
@@ -12,6 +12,13 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
public:
// Public member variables
TSLink<CGObject_C> m_link;
// TODO
uint32_t m_lockCount : 16;
uint32_t m_disabled : 1;
uint32_t m_inReenable : 1;
uint32_t m_postInited : 1;
uint32_t m_flag19 : 1;
uint32_t m_disablePending : 1;
// Public member functions
CGObject_C() = default;