RealtimeComponentApplyEvent

Trait RealtimeComponentApplyEvent 

Source
pub trait RealtimeComponentApplyEvent<C>: RealtimeComponent {
    // Required method
    fn apply_event(
        event: <Self as RealtimeComponent>::Event,
        entity: Entity,
        context: &mut C,
    );
}

Required Methods§

Source

fn apply_event( event: <Self as RealtimeComponent>::Event, entity: Entity, context: &mut C, )

Apply an event to a context. This is separated from tick so that the context can include the container of this RealtimeComponent.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§