pub enum SceneCommand {
SetVelocity(EntityId, Option<Velocity>),
Despawn(EntityId),
}Expand description
Deferred structural operations, applied only when mutable world ownership is available.
Variants§
SetVelocity(EntityId, Option<Velocity>)
Migrate to/from the velocity archetype without changing identity.
Despawn(EntityId)
Remove one live entity; stale/foreign identities return a controlled error.
Trait Implementations§
Source§impl Clone for SceneCommand
impl Clone for SceneCommand
impl Copy for SceneCommand
Auto Trait Implementations§
impl Freeze for SceneCommand
impl RefUnwindSafe for SceneCommand
impl Send for SceneCommand
impl Sync for SceneCommand
impl Unpin for SceneCommand
impl UnsafeUnpin for SceneCommand
impl UnwindSafe for SceneCommand
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