Struct yaecs::Entity
[−]
[src]
pub struct Entity { pub components: AnyMap, pub tags: HashMap<&'static str, String>, }
An Entity
is simply an identifier for a bag of components. In general, System
s operate on
a subset of all entities that posess components the System
is interested in.
Fields
components: AnyMap
Bag of components
Tags (metadata about this entity)
Methods
impl Entity
[src]
fn new(label: String) -> Entity
Creates a new Entity
with an empty bag of components