Struct oxygengine_core::ecs::commands::SpawnEntity
source · pub struct SpawnEntity {
pub entity_builder: EntityBuilder,
/* private fields */
}
Fields§
§entity_builder: EntityBuilder
Implementations§
source§impl 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: FnOnce(&mut Universe, Entity) + Send + Sync + 'static,
pub fn execute(&mut self, universe: &mut Universe) -> Entity
Trait Implementations§
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more