pub struct Calendar {
pub year: u32,
pub elapsed: i64,
pub year_ticks: i64,
}Expand description
The year, and the game time since it began.
Fields§
§year: u32The year, from 1.
elapsed: i64The game time since the year began, in ticks. It is integer time, not a sum of rounded float steps.
year_ticks: i64The length of a year: 3,600 seconds.
Implementations§
Trait Implementations§
impl Eq for Calendar
impl StructuralPartialEq for Calendar
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnsafeUnpin for Calendar
impl UnwindSafe for Calendar
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