Trait amethyst::ecs::prelude::Builder[]

pub trait Builder {
    fn with<C>(self, c: C) -> Self
    where
        C: Component + Send + Sync
;
fn build(self) -> Entity; }

A common trait for EntityBuilder and LazyBuilder, allowing either to be used. Entity is definitely alive, but the components may or may not exist before a call to World::maintain.

Required Methods

Appends a component and associates it with the entity.

Panics

Panics if the component hasn't been register()ed in the World.

Finishes the building and returns the entity.

Implementors