Trait 2dgl::game::gameloop::Update [-]  [+] [src]

pub trait Update<U> {
    fn update(&mut self, data: U, delta_time: Duration);
}

Something that have the ability to update in a game loop

U: Type of the data sent through the update function

Required Methods

fn update(&mut self, data: U, delta_time: Duration)

Updates

delta_time: Time since last update

Implementors