pub trait RenderEvent:
'static
+ Send
+ Sync {
const KIND: u32;
// Required methods
fn entity(&self) -> u32;
fn position(&self) -> [f32; 3];
// Provided methods
fn intensity(&self) -> f32 { ... }
fn data(&self) -> [f32; 4] { ... }
}Expand description
Implemented by ECS event types that should be extracted as FrameEvents
for the TS audio/VFX layer.
Each implementor must provide a unique KIND constant
and methods to extract entity, position, and intensity.
Required Associated Constants§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".