Skip to main content

Game

Trait Game 

Source
pub trait Game {
    // Required methods
    fn start(&mut self);
    fn tick(&mut self, sim_input: SimInput<'_>) -> TickResult;
    fn present(&self, present_input: PresentInput<'_>);
}

Required Methods§

Source

fn start(&mut self)

Source

fn tick(&mut self, sim_input: SimInput<'_>) -> TickResult

Source

fn present(&self, present_input: PresentInput<'_>)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§