pub trait Layer {
fn on_update(
&mut self,
world: &mut World,
resources: &mut Resources,
events: &mut Events,
frame_time: Duration
) -> Result<()>;
}
Expand description
A layer represents an ordered abstraction of execution logic. Layers are ordered and run in order.