Struct yaecs::Entity [] [src]

pub struct Entity {
    pub label: String,
    pub components: AnyMap,
}

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

A user-defined label for this entity. This could be thrown out if in future we run into memory issues, but for now its convenient as it allows us to more easily identify an entity.

Bag of components

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.