Skip to main content

ShellHooks

Trait ShellHooks 

Source
pub trait ShellHooks {
    // Provided method
    fn on_frame(&mut self, _sim: &mut Sim, _dt: Duration) { ... }
}
Expand description

Per-frame hooks the game implements.

Provided Methods§

Source

fn on_frame(&mut self, _sim: &mut Sim, _dt: Duration)

Variable-rate hook (tweens, audio, autosave timers).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§