pub struct LifeRules {
pub services: [Option<usize>; 3],
/* private fields */
}Expand description
The CitizenDescription values, by offset.
Fields§
§services: [Option<usize>; 3]D, D, D: the teacher’s, priest’s and doctor’s professions (the workplaces whose
attendance a citizen joins), as profession indices.
Implementations§
Source§impl LifeRules
impl LifeRules
Sourcepub fn hunger_warning(&self) -> f32
pub fn hunger_warning(&self) -> f32
(D[0xd0] − D[0xcc]) · ½ + D[0xcc]: hungry enough for the status icon and a health event.
Sourcepub fn cold_warning(&self) -> f32
pub fn cold_warning(&self) -> f32
(D[0xf0] − D[0xec]) · ¼ + D[0xec].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LifeRules
impl RefUnwindSafe for LifeRules
impl Send for LifeRules
impl Sync for LifeRules
impl Unpin for LifeRules
impl UnsafeUnpin for LifeRules
impl UnwindSafe for LifeRules
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