Now entity can report it's type

This commit is contained in:
Nobody 2022-02-21 00:18:36 +05:00
parent e3c87db4f1
commit e3ebad3463

View File

@ -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<JsonManager>, db: &Arc<DatabaseManager>) -> proto::SceneEntityInfo {
let mut sei = build!(SceneEntityInfo {
entity_id: self.entity_id,