pub trait Entity:
Process
+ Viewable
+ EntityCollection {
// Required methods
fn id(&self) -> String;
fn set_id(&self, val: String);
fn parent(&self) -> Box<dyn Entity>;
fn remove(&self, is_removed_from_view: Option<bool>);
}
Expand description
The Entity should be implemented by all objects in the entity broad phase traversal stack.
The Entity represents the fundamental building block and provides sufficient functionality to build most game elements. Project specific entities can be created as custom classes, or by injecting functionality through the Entity interface.
Required Methods§
Sourcefn id(&self) -> String
fn id(&self) -> String
The unique identifier of this entity. This value is very useful for retrieving a specific entity.