#[repr(C)]pub struct EcsTimer {
pub timeout: f32,
pub time: f32,
pub overshoot: f32,
pub fired_count: i32,
pub active: bool,
pub single_shot: bool,
}Expand description
Component used for one shot/interval timer functionality
Fields§
§timeout: f32< Timer timeout period
time: f32< Incrementing time value
overshoot: f32< Used to correct returned interval time
fired_count: i32< Number of times ticked
active: bool< Is the timer active or not
single_shot: bool< Is this a single shot timer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EcsTimer
impl RefUnwindSafe for EcsTimer
impl Send for EcsTimer
impl Sync for EcsTimer
impl Unpin for EcsTimer
impl UnwindSafe for EcsTimer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more