Skip to main content

GrowthDescription

Struct GrowthDescription 

Source
pub struct GrowthDescription {
Show 18 fields pub max_base: f32, pub max_range: f32, pub f28: f32, pub b2c: bool, pub f30: f32, pub f34: f32, pub b38: bool, pub f3c: f32, pub f40: f32, pub b44: bool, pub spawn_radius: i32, pub timer_months: i32, pub spawn_one_in: i32, pub threshold: f32, pub max_neighbours: i32, pub max_same: i32, pub f60: f32, pub tall: bool,
}
Expand description

GrowthDescription. See GAME-LOOP-STEP-11/12 and RESOURCE-SEEDING.md for the consumers.

Original: FUN_140125e50.

Fields§

§max_base: f32

Maximum growth = RandFloatTol · range + base when base > 0; otherwise −1. Also the spawn step.

Original: FUN_140125bc0, FUN_140056620.

§max_range: f32

The random range of the maximum growth.

§f28: f32

The growing time, in months of 300 seconds.

§b2c: bool

Whether the temperature changes the growth rate.

§f30: f32

The best temperature.

§f34: f32

The range of temperatures around the best one.

§b38: bool

Not identified yet.

§f3c: f32

The map-byte factor when a resource of the same template is removed.

§f40: f32

The map-byte factor otherwise, and when growth ends.

§b44: bool

Whether it spawns children from time to time.

§spawn_radius: i32

Spawn radius in cells (RandTol).

§timer_months: i32

Growth timer scale (RandFloat · value · 300 seconds).

§spawn_one_in: i32

Spawn chance is 1 / value.

§threshold: f32

Not identified yet.

§max_neighbours: i32

Maximum occupied neighbours.

Original: FUN_140126100.

§max_same: i32

Maximum neighbours of the same growth type.

§f60: f32

The smallest visible scale.

§tall: bool

Scale shape: false = uniform growth, true = (g/0.15, g/0.15, g, 1) clamped.

Trait Implementations§

Source§

impl Clone for GrowthDescription

Source§

fn clone(&self) -> GrowthDescription

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 Debug for GrowthDescription

Source§

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

Formats the value using the given formatter. Read more

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.