logo
pub trait Tickable {
    fn update(&self, dt: f32) -> bool;
}
Expand description

An object that exists outside of the entity hierarchy, but still needs to be updated each frame. This is an implementation detail, nothing outside of d2::platform should implement self.

Required Methods

@param dt The elapsed delta-time in seconds. @returns True if this Tickable should no longer be updated.

Implementors