feat(object): set disable time in CGObject_C::Disable

This commit is contained in:
fallenoak 2026-01-17 20:29:40 -06:00
parent c92f1b8de8
commit 2efef87898
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#include "object/client/CGObject_C.hpp"
#include "object/client/ObjMgr.hpp"
#include "world/World.hpp"
CGObject_C::CGObject_C(uint32_t time, CClientObjCreate& objCreate) {
// TODO
@ -23,10 +24,12 @@ void CGObject_C::AddWorldObject() {
}
void CGObject_C::Disable() {
// TODO
this->m_disabled = true;
// TODO other flag manipulation
// TODO
this->m_disableTimeMs = CWorld::GetCurTimeMs();
}
int32_t CGObject_C::IsInReenable() {

View File

@ -12,6 +12,7 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
public:
// Public member variables
TSLink<CGObject_C> m_link;
uint32_t m_disableTimeMs;
// TODO
uint32_t m_lockCount : 16;
uint32_t m_disabled : 1;