This commit is contained in:
aozhiwei 2024-01-18 16:37:39 +08:00
parent d0c38dcaae
commit 442346967d

View File

@ -63,6 +63,8 @@ class Entity
EntityWeakPtr& GetEntityWeakPtrRef();
bool IsClientCached(Human* hum);
bool CanClientCache(Human* hum);
bool IsDestorying() { return destorying_; };
void SetDestorying() { destorying_ = true;};
protected:
void AddClientCache(Human* hum);
@ -72,6 +74,7 @@ private:
private:
int uniid_ = 0;
bool destorying_ = false;
EntityType_e entity_type_ = ET_None;
EntitySubType_e entity_subtype_ = EST_None;