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.

Required methods

Called for each iteration of the application event loop. The layer can return an error. frame_time: The duration between this and the last application frame.

Implementations on Foreign Types

Implementors