Struct oxygengine_core::ecs::commands::SpawnEntity
source · [−]pub struct SpawnEntity {
pub entity_builder: EntityBuilder,
/* private fields */
}
Fields
entity_builder: EntityBuilder
Implementations
sourceimpl SpawnEntity
impl SpawnEntity
pub fn new(entity_builder: EntityBuilder) -> Self
pub fn from_bundle<B>(bundle: B) -> Selfwhere
B: DynamicBundle,
pub fn on_complete<F>(self, f: F) -> Selfwhere
F: FnMut(&mut Universe, Entity) + Send + Sync + 'static,
pub fn execute(&mut self, universe: &mut Universe) -> Entity
Trait Implementations
sourceimpl UniverseCommand for SpawnEntity
impl UniverseCommand for SpawnEntity
Auto Trait Implementations
impl !RefUnwindSafe for SpawnEntity
impl Send for SpawnEntity
impl Sync for SpawnEntity
impl Unpin for SpawnEntity
impl !UnwindSafe for SpawnEntity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more