pub struct Home {
pub desc: ResidenceDescription,
pub storage: usize,
pub families: Vec<Vec<usize>>,
pub fuel: i64,
pub status: u32,
}Expand description
ResidenceComponent: the family slots and the fire.
Fields§
§desc: ResidenceDescriptionThe residence description.
storage: usizeThe site’s StorageComponent.
families: Vec<Vec<usize>>The residents of each family slot, sorted as the original sorts them.
Original: sorted by FUN_14012f2f0.
fuel: i64Time the last firewood keeps burning.
status: u32The StatusIconComponent bits the residence sets: 6 no food, 7 no firewood.
Implementations§
Source§impl Home
impl Home
Sourcepub fn new(desc: ResidenceDescription, storage: usize) -> Home
pub fn new(desc: ResidenceDescription, storage: usize) -> Home
A home with its description and its storage.
Sourcepub fn full(&self, slot: usize) -> bool
pub fn full(&self, slot: usize) -> bool
Family slot has at least residents.
Original: FUN_14012f9c0.
Sourcepub fn warm(&self, temperature: f32) -> bool
pub fn warm(&self, temperature: f32) -> bool
Warm enough outside, or the fire is burning.
Original: FUN_140130100.
Sourcepub fn families_living(&self) -> i32
pub fn families_living(&self) -> i32
The number of families with residents.
Original: counted by FUN_14011abb0 and FUN_14011acc0.
Trait Implementations§
impl StructuralPartialEq for Home
Auto Trait Implementations§
impl Freeze for Home
impl RefUnwindSafe for Home
impl Send for Home
impl Sync for Home
impl Unpin for Home
impl UnsafeUnpin for Home
impl UnwindSafe for Home
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