mirror of
https://github.com/RustySamovar/RustySamovar.git
synced 2024-11-24 19:27:35 +00:00
Now entity can report it's type
This commit is contained in:
parent
e3c87db4f1
commit
e3ebad3463
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user