pub struct Tick { /* private fields */ }Expand description
The tick is used to keep track of time in the game.
You can advance the game by one tick using the next method.
Many functions and building methods require a Tick to be passed in, which allows them to update their state.
If a function takes a &mut Tick, then the function will take time.
If a function merely takes a &Tick, or no Tick at all, it will never advance the game time.
Implementations§
Trait Implementations§
Source§impl PartialOrd<&Tick> for u64
impl PartialOrd<&Tick> for u64
Auto Trait Implementations§
impl Freeze for Tick
impl RefUnwindSafe for Tick
impl Send for Tick
impl Sync for Tick
impl Unpin for Tick
impl UnwindSafe for Tick
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