HiRE 0.0.0

High performance Rhythm game Engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub trait HiRE<GC, CS: ControlState, DS: DisplayState> {
    fn new(game_config: GC) -> Self;
    fn game_config(&self) -> &GC;
    fn forward(&mut self, control_state: CS) -> DS;
    fn history(&self) -> Vec<CS>;
}

pub trait ControlState {
    fn time_secs() -> f64;
}

pub trait DisplayState {
    fn finished() -> bool;
}