Skip to main content

FireDescription

Struct FireDescription 

Source
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: f32

The burning time: burn_months × 300 + burn seconds.

§burn_months: f32

The burning time in months of 300 seconds (see burn).

§particle: i32

The particle slot of the flames.

§emitter: i32

The ambient emitter slot of the sound.

§interval: f32

The time between attempts to spread, in months of 300 seconds. Each bucket of water takes interval × 300 / buckets seconds off.

§spread: f32

The odds that a neighbour catches fire.

§radius: i32

The emergency radius, in cells: citizens in it come to put the fire out.

§buckets: i32

The buckets of water that put the fire out.

§workers: i32

The most firefighters.

§years: f32

How often a building catches fire by itself, in years (with odds).

§odds: f32

The odds that a building catches fire by itself (with years).

Trait Implementations§

Source§

impl Clone for FireDescription

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for FireDescription

Source§

impl Debug for FireDescription

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FireDescription

Source§

fn default() -> FireDescription

Returns the “default value” for a type. Read more
Source§

impl PartialEq for FireDescription

Source§

fn eq(&self, other: &FireDescription) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FireDescription

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.