pub struct FireDescription {
pub burn: f32,
pub burn_months: f32,
pub particle: i32,
pub emitter: i32,
pub interval: f32,
pub spread: f32,
pub radius: i32,
pub buckets: i32,
pub workers: i32,
pub years: f32,
pub odds: f32,
}Expand description
A FireDescription: how a fire burns, spreads and is put out.
Original: FUN_14004a560; fires that start by themselves, FUN_1400ae760.
Fields§
§burn: f32The burning time: burn_months × 300 + burn seconds.
burn_months: f32The burning time in months of 300 seconds (see burn).
particle: i32The particle slot of the flames.
emitter: i32The ambient emitter slot of the sound.
interval: f32The time between attempts to spread, in months of 300 seconds. Each bucket of water
takes interval × 300 / buckets seconds off.
spread: f32The odds that a neighbour catches fire.
radius: i32The emergency radius, in cells: citizens in it come to put the fire out.
buckets: i32The buckets of water that put the fire out.
workers: i32The most firefighters.
years: f32How often a building catches fire by itself, in years (with odds).
odds: f32The odds that a building catches fire by itself (with years).
Trait Implementations§
Source§impl Clone for FireDescription
impl Clone for FireDescription
Source§fn clone(&self) -> FireDescription
fn clone(&self) -> FireDescription
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 FireDescription
Source§impl Debug for FireDescription
impl Debug for FireDescription
Source§impl Default for FireDescription
impl Default for FireDescription
Source§fn default() -> FireDescription
fn default() -> FireDescription
Returns the “default value” for a type. Read more
Source§impl PartialEq for FireDescription
impl PartialEq for FireDescription
impl StructuralPartialEq for FireDescription
Auto Trait Implementations§
impl Freeze for FireDescription
impl RefUnwindSafe for FireDescription
impl Send for FireDescription
impl Sync for FireDescription
impl Unpin for FireDescription
impl UnsafeUnpin for FireDescription
impl UnwindSafe for FireDescription
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