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) -> Self
pub fn execute(&mut self, universe: &mut Universe) -> Entity
Trait Implementations§
Source§impl UniverseCommand for SpawnEntity
impl UniverseCommand for SpawnEntity
Auto Trait Implementations§
impl Freeze for SpawnEntity
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