From e3ebad3463635ccbb525e8e21619072f7f9fce3a Mon Sep 17 00:00:00 2001 From: Nobody Date: Mon, 21 Feb 2022 00:18:36 +0500 Subject: [PATCH] Now entity can report it's type --- src/subsystems/entity_subsystem/entities.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/subsystems/entity_subsystem/entities.rs b/src/subsystems/entity_subsystem/entities.rs index 110b4f7..da1495e 100644 --- a/src/subsystems/entity_subsystem/entities.rs +++ b/src/subsystems/entity_subsystem/entities.rs @@ -353,6 +353,10 @@ impl Entity { self.entity.pos() } + pub fn etype(&self) -> proto::ProtEntityType { + self.entity.etype() + } + pub fn convert(&self, world_level: u32, jm: &Arc, db: &Arc) -> proto::SceneEntityInfo { let mut sei = build!(SceneEntityInfo { entity_id: self.entity_id,