Skip to main content
Verticopolis engineGitHub

StepSim

Trait StepSim 

Source
pub trait StepSim {
    // Required methods
    fn step(&mut self, dt_minutes: f64);
    fn minute_of_day(&self) -> f64;
}
Expand description

What the stepper drives: Simulation implements it.

Required Methods§

Source

fn step(&mut self, dt_minutes: f64)

Advances the game by dt_minutes.

Source

fn minute_of_day(&self) -> f64

The game clock’s minute of the day, 0 up to 1,440.

Implementors§