Struct dces::entity::EntityBuilder[][src]

pub struct EntityBuilder<'a, T> where
    T: EntityContainer + 'a, 
{ pub entity: Entity, pub entity_component_manager: &'a mut EntityComponentManager, pub entity_container: &'a mut T, }

The entity builder is used to create an entity with components.

Fields

The created entity.

Reference to the entity component manager, used to add compoments to the entity.

Methods

impl<'a, T> EntityBuilder<'a, T> where
    T: EntityContainer
[src]

Adds a component of type C to the entity.

Adds a component box to the entity.

Finishing the creation of the entity.

Auto Trait Implementations

impl<'a, T> !Send for EntityBuilder<'a, T>

impl<'a, T> !Sync for EntityBuilder<'a, T>