pub struct Citizen {
pub name: String,
pub male: bool,
pub age: f32,
pub lifespan: f32,
pub appearance: u32,
pub educated: bool,
pub education: i32,
pub position: [f32; 3],
pub spouse: Option<usize>,
pub parent: Option<usize>,
pub school: Option<usize>,
pub alive: bool,
}Expand description
A citizen: name, sex, age, education, appearance and family.
Fields§
§name: StringNot identified yet.
male: bool1 = male.
age: f32The citizen’s age, in the description’s age units.
lifespan: f32Not identified yet.
appearance: u32Appearance variation (Rand + Rand) & 7, passed to the shader as instance w.
educated: boolWhether the citizen is educated.
education: i32The education.
position: [f32; 3]Map position (cells from the terrain centre) and height.
spouse: Option<usize>Spouse (index into the citizen list).
parent: Option<usize>Household parent the child was added to.
Original: FUN_14011bd70.
school: Option<usize>School (none at New Game).
alive: boolFalse once the entity is deleted (the port keeps its index).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Citizen
Auto Trait Implementations§
impl Freeze for Citizen
impl RefUnwindSafe for Citizen
impl Send for Citizen
impl Sync for Citizen
impl Unpin for Citizen
impl UnsafeUnpin for Citizen
impl UnwindSafe for Citizen
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