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, Systems operate on a subset of all entities that posess components the System is interested in.

Fields

Bag of components

Tags (metadata about this entity)

Methods

impl Entity
[src]

Creates a new Entity with an empty bag of components

Trait Implementations

impl Debug for Entity
[src]

Formats the value using the given formatter.

impl PartialEq for Entity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.