pub struct HaloEntry {
pub effect: &'static str,
pub floors: f64,
pub max: f64,
pub cap_lift: Option<f64>,
pub felt_by: Vec<&'static str>,
pub open_hours_only: bool,
pub family_scaled: bool,
}Expand description
A venue’s halo: who feels it, over how many floors and how hard.
Fields§
§effect: &'static strlift (an amenity) or drain (a nuisance).
floors: f64How far it reaches: a room d floors away feels max * (1 - d / floors), and none at floors or beyond.
max: f64The hourly bonus or drain on the venue’s own floor.
cap_lift: Option<f64>How far a lift raises a capped room’s ceiling at full strength, or null for a drain.
felt_by: Vec<&'static str>The kinds that feel it, in catalog order.
open_hours_only: boolFelt only in the venue’s open hours (its openHours).
family_scaled: boolScaled by the household’s size, largest for the biggest family.
Trait Implementations§
impl StructuralPartialEq for HaloEntry
Auto Trait Implementations§
impl Freeze for HaloEntry
impl RefUnwindSafe for HaloEntry
impl Send for HaloEntry
impl Sync for HaloEntry
impl Unpin for HaloEntry
impl UnsafeUnpin for HaloEntry
impl UnwindSafe for HaloEntry
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