pub struct Thresholds {
pub adult_age: f32,
pub health_low: f32,
pub happy_low: f32,
pub happy_unhappy: f32,
pub hungry: f32,
pub hungry_urgent: f32,
pub cold: f32,
pub cold_urgent: f32,
}Expand description
The CitizenDescription thresholds candidate building reads.
Fields§
§adult_age: f32The age at which a citizen is an adult.
health_low: f32The health below which a citizen looks for herbs.
happy_low: f32The happiness below which a citizen gets restless after LOITER_SAD seconds.
happy_unhappy: f32The happiness below which a citizen gets restless after LOITER_UNHAPPY seconds.
hungry: f32The hunger above which a citizen eats.
hungry_urgent: f32The hunger above which a citizen eats at once.
cold: f32The cold above which a citizen warms up.
cold_urgent: f32The cold above which a citizen warms up at once.
Trait Implementations§
Source§impl Clone for Thresholds
impl Clone for Thresholds
Source§fn clone(&self) -> Thresholds
fn clone(&self) -> Thresholds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Thresholds
Source§impl Debug for Thresholds
impl Debug for Thresholds
Source§impl Default for Thresholds
impl Default for Thresholds
Source§fn default() -> Thresholds
fn default() -> Thresholds
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Thresholds
impl RefUnwindSafe for Thresholds
impl Send for Thresholds
impl Sync for Thresholds
impl Unpin for Thresholds
impl UnsafeUnpin for Thresholds
impl UnwindSafe for Thresholds
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