Struct oxygengine_core::ecs::world::LazyBuilder [−][src]
#[must_use = "Please call .build() on this to finish building it."]pub struct LazyBuilder<'a> { pub entity: Entity, pub lazy: &'a LazyUpdate, }
Like EntityBuilder
, but inserts the component
lazily, meaning on maintain
.
If you need those components to exist immediately,
you have to insert them into the storages yourself.
Fields
entity: Entity
The entity that we’re inserting components for.
lazy: &'a LazyUpdate
The lazy update reference.
Trait Implementations
impl<'a> Builder for LazyBuilder<'a>
[src]
impl<'a> Builder for LazyBuilder<'a>
[src]pub fn with<C>(self, component: C) -> LazyBuilder<'a> where
C: Component,
[src]
C: Component,
Inserts a component using LazyUpdate.
If a component was already associated with the entity, it will overwrite the previous component.
pub fn build(self) -> Entity
[src]
Finishes the building and returns the built entity.
Please note that no component is associated to this
entity until you call World::maintain
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LazyBuilder<'a>
impl<'a> !RefUnwindSafe for LazyBuilder<'a>
impl<'a> !Send for LazyBuilder<'a>
impl<'a> !Send for LazyBuilder<'a>
impl<'a> !Sync for LazyBuilder<'a>
impl<'a> !Sync for LazyBuilder<'a>
impl<'a> Unpin for LazyBuilder<'a>
impl<'a> Unpin for LazyBuilder<'a>
impl<'a> !UnwindSafe for LazyBuilder<'a>
impl<'a> !UnwindSafe for LazyBuilder<'a>