pub struct Households<'a> {
pub rules: CitizenRules,
pub male_names: &'a NameDatabase,
pub female_names: &'a NameDatabase,
pub spread: f32,
pub start: [f32; 3],
pub citizens: Vec<Citizen>,
}Expand description
The starting households of a new town, as the start condition makes them.
Fields§
§rules: CitizenRulesThe citizen rules.
male_names: &'a NameDatabaseThe men’s names.
female_names: &'a NameDatabaseThe women’s names.
spread: f32MapGenerator: spread of citizens around the start point.
start: [f32; 3]Start cell centre on the ground.
Original: FUN_140002080.
citizens: Vec<Citizen>The citizens made.
Implementations§
Source§impl Households<'_>
impl Households<'_>
Sourcepub fn create_all(&mut self, rng: &mut Random, rows: &[(bool, i32)])
pub fn create_all(&mut self, rng: &mut Random, rows: &[(bool, i32)])
One couple per row, then Rand(extra + 1) children whose sex alternates across all
households, starting female.
Original: FUN_1400a62a0.
Auto Trait Implementations§
impl<'a> Freeze for Households<'a>
impl<'a> RefUnwindSafe for Households<'a>
impl<'a> Send for Households<'a>
impl<'a> Sync for Households<'a>
impl<'a> Unpin for Households<'a>
impl<'a> UnsafeUnpin for Households<'a>
impl<'a> UnwindSafe for Households<'a>
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