pub enum TickTimeType {
EarthLike {
seconds_per_tick: usize,
month_type: EarthLikeMonthType,
},
Custom {
seconds_per_tick: usize,
hours_in_a_day: usize,
months_durations: Vec<usize>,
seasons_durations: Vec<usize>,
week_duration: usize,
},
}Expand description
The way the in game datetime will be handled
Variants§
EarthLike
The date and time is like on the planet earth (12 months, 24 hours a day, 60 minutes an hour, 60 seconds a minute)
Fields
§
month_type: EarthLikeMonthTypeWhich kind of calendar to compute values
Custom
A configurable date and time type. An hour will still be 60 minutes and a minute 60 seconds.
Note that sum of season_duration and months_durations must match to be consistent.
Trait Implementations§
Source§impl Clone for TickTimeType
impl Clone for TickTimeType
Source§fn clone(&self) -> TickTimeType
fn clone(&self) -> TickTimeType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TickTimeType
impl RefUnwindSafe for TickTimeType
impl Send for TickTimeType
impl Sync for TickTimeType
impl Unpin for TickTimeType
impl UnwindSafe for TickTimeType
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