[][src]Trait ngen::Simulation

pub trait Simulation {
    fn update(&mut self, input: &Input, tick: Tick) -> bool;
fn render(&mut self, render_commands: &mut RenderCommands); }

A trait describing a simulation.

Required methods

fn update(&mut self, input: &Input, tick: Tick) -> bool

The update method that is called every simulation frame.

fn render(&mut self, render_commands: &mut RenderCommands)

The render method that is called every render frame.

Loading content...

Implementors

Loading content...