pub struct NaturalResourceDescription {Show 21 fields
pub raw_material: Option<String>,
pub noise_persistence: f32,
pub noise_octaves: f32,
pub noise_scale: f32,
pub noise_min: f32,
pub chance: f32,
pub cluster: bool,
pub cluster_persistence: f32,
pub cluster_octaves: f32,
pub cluster_scale: f32,
pub cluster_threshold: f32,
pub random_variant_one_in: i32,
pub height_min: f32,
pub height_max: f32,
pub normal_min: f32,
pub flag: bool,
pub time_a: i64,
pub time_b: i64,
pub value: u32,
pub related: Option<String>,
pub position_scale: f32,
}Expand description
NaturalResourceDescription. Field offsets are in the runtime object; see
docs/RESOURCE-SEEDING.md and GAME-LOOP-STEP-14.md.
Original: FUN_14012b2e0.
Fields§
§raw_material: Option<String>The raw material it yields.
noise_persistence: f32The placement noise’s persistence.
noise_octaves: f32The placement noise’s octaves.
noise_scale: f32Placement noise scale (sampled at cell / scale).
noise_min: f32Minimum noise · 0.5 + 0.5.
chance: f32RandFloat must be at most this.
cluster: boolChoose the model variant by noise clusters.
cluster_persistence: f32The cluster noise’s persistence.
cluster_octaves: f32The cluster noise’s octaves.
cluster_scale: f32The cluster noise’s scale.
cluster_threshold: f32The cluster noise’s threshold.
random_variant_one_in: i321-in-N chance of a random variant instead.
height_min: f32The lowest ground height.
height_max: f32The highest ground height.
normal_min: f32Minimum ground normal z.
flag: boolTransition flag (GAME-LOOP-STEP-14).
time_a: i64A time in microseconds; not identified yet.
time_b: i64A time in microseconds; not identified yet.
value: u32Not identified yet.
Not identified yet.
position_scale: f32Used by the positioning component.
Trait Implementations§
Source§impl Clone for NaturalResourceDescription
impl Clone for NaturalResourceDescription
Source§fn clone(&self) -> NaturalResourceDescription
fn clone(&self) -> NaturalResourceDescription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more