pub struct CitizenView {Show 17 fields
pub sick: bool,
pub doctor: bool,
pub hunger: f32,
pub cold: f32,
pub health: f32,
pub health_flag: bool,
pub happiness: f32,
pub age: f32,
pub school: bool,
pub home: bool,
pub clothing: i32,
pub tool: i32,
pub emergency: bool,
pub home_food: bool,
pub home_fuel: bool,
pub spouse_activity: Option<u32>,
pub carrying: i32,
}Expand description
The citizen values candidate building reads (D = CitizenDescription).
Fields§
§sick: boolWhether it has a disease.
doctor: boolWhether a doctor is assigned.
hunger: f32The hunger.
cold: f32The cold.
health: f32The health.
health_flag: boolBit 9 of the health events: herbs are not wanted (inferred).
happiness: f32The happiness.
age: f32The age.
school: boolWhether it attends school.
home: boolWhether it has a home.
clothing: i32The clothing level.
tool: i32The uses left on its tool.
emergency: boolMap byte set at home, work or here.
Original: FUN_14011b0b0.
home_food: boolThe home has food.
Original: FUN_14011abb0, FUN_14011acc0.
home_fuel: boolThe home has firewood.
spouse_activity: Option<u32>The spouse’s supply errand: 1 food, 2 firewood.
carrying: i32Carried inventory count.
Original: FUN_14011b2b0.
Trait Implementations§
Source§impl Clone for CitizenView
impl Clone for CitizenView
Source§fn clone(&self) -> CitizenView
fn clone(&self) -> CitizenView
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 CitizenView
Source§impl Debug for CitizenView
impl Debug for CitizenView
Source§impl Default for CitizenView
impl Default for CitizenView
Source§fn default() -> CitizenView
fn default() -> CitizenView
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CitizenView
impl RefUnwindSafe for CitizenView
impl Send for CitizenView
impl Sync for CitizenView
impl Unpin for CitizenView
impl UnsafeUnpin for CitizenView
impl UnwindSafe for CitizenView
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