mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(object): set disable time in CGObject_C::Disable
This commit is contained in:
parent
c92f1b8de8
commit
2efef87898
@ -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() {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user