Trait bevy_impulse::disposal::ManageDisposal

source ·
pub trait ManageDisposal {
    // Required methods
    fn emit_disposal(
        &mut self,
        session: Entity,
        disposal: Disposal,
        roster: &mut OperationRoster,
    );
    fn clear_disposals(&mut self, session: Entity);
    fn transfer_disposals(&mut self, to_node: Entity) -> OperationResult;
}

Required Methods§

source

fn emit_disposal( &mut self, session: Entity, disposal: Disposal, roster: &mut OperationRoster, )

source

fn clear_disposals(&mut self, session: Entity)

source

fn transfer_disposals(&mut self, to_node: Entity) -> OperationResult

Used to transfer the disposals gathered by a temporary operation (e.g. a task) over to a persistent node

Implementations on Foreign Types§

source§

impl<'w> ManageDisposal for EntityWorldMut<'w>

source§

fn emit_disposal( &mut self, session: Entity, disposal: Disposal, roster: &mut OperationRoster, )

source§

fn clear_disposals(&mut self, session: Entity)

source§

fn transfer_disposals(&mut self, to: Entity) -> OperationResult

Implementors§