Struct specs::EntityBuilder [] [src]

pub struct EntityBuilder<'a>(_, _);

Helper builder for entities.

Methods

impl<'a> EntityBuilder<'a>
[src]

fn with<T: Component>(self, value: T) -> EntityBuilder<'a>

Adds a Component value to the new Entity.

fn build(self) -> Entity

Finishes entity construction.