Skip to main content

MapGenerator

Struct MapGenerator 

Source
pub struct MapGenerator {
Show 26 fields pub list: Option<String>, pub name: String, pub description: String, pub flag: bool, pub start_radius: i32, pub value_40: f32, pub citizen: String, pub households: Vec<(bool, i32)>, pub natural_resources: Vec<String>, pub structures: Vec<PlacedStructure>, pub populations: Vec<String>, pub raw_materials: Vec<String>, pub crops: Vec<String>, pub orchard_trees: Vec<String>, pub livestock: Vec<String>, pub crop_picks: i32, pub tree_picks: i32, pub livestock_picks: i32, pub livestock_floats: [f32; 3], pub ints: [i32; 8], pub string_118: String, pub string_138: String, pub float_130: f32, pub int_150: i32, pub string_158: String, pub float_170: f32,
}
Expand description

MapGenerator: a New Game starting-condition profile. Field names follow their confirmed consumers; offsets are the in-memory record’s.

Original: FUN_1400a7e50.

Fields§

§list: Option<String>

The string table (inferred, as in the other profiles).

§name: String

The name’s key.

§description: String

The description’s key.

§flag: bool

Whether it is listed in the New Game dialog (inferred, as in ClimateHeader).

§start_radius: i32

Radius of the clear-ground start area.

Original: FUN_1400a7bf0.

§value_40: f32

Not identified yet.

§citizen: String

The citizen template.

§households: Vec<(bool, i32)>

The household groups: a flag, and the most extra members ((flag, extra members up to)).

§natural_resources: Vec<String>

Templates seeded over the map: rock, ore, tree.

Original: FUN_1400a6780.

§structures: Vec<PlacedStructure>

Not identified yet.

§populations: Vec<String>

Population managers (deer).

§raw_materials: Vec<String>

Starting raw materials.

§crops: Vec<String>

Crop templates; crop_picks are chosen at random.

§orchard_trees: Vec<String>

Orchard tree templates; tree_picks are chosen at random.

§livestock: Vec<String>

Livestock templates; livestock_picks are chosen at random.

§crop_picks: i32

How many crops are chosen.

§tree_picks: i32

How many orchard trees are chosen.

§livestock_picks: i32

How many livestock kinds are chosen.

§livestock_floats: [f32; 3]

Not identified yet.

§ints: [i32; 8]

livestock_count then seven more integers.

§string_118: String

Not identified yet.

§string_138: String

Not identified yet.

§float_130: f32

Not identified yet.

§int_150: i32

Not identified yet.

§string_158: String

Not identified yet.

§float_170: f32

Not identified yet.

Trait Implementations§

Source§

impl Clone for MapGenerator

Source§

fn clone(&self) -> MapGenerator

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 MapGenerator

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.