pub struct WorldGenProfile {Show 21 fields
pub name: String,
pub width: usize,
pub height: usize,
pub cell_size_m: f32,
pub height_scale_m: f32,
pub sea_level_frac: f32,
pub fbm_params: FbmParams,
pub warp_strength: f32,
pub erosion_params: ErosionParams,
pub thermal_iters: usize,
pub thermal_talus_deg: f32,
pub num_rivers: usize,
pub num_lakes: usize,
pub foliage_density: f32,
pub apply_island_mask: bool,
pub island_falloff: f32,
pub fill_sinks: bool,
pub latitude: f64,
pub longitude: f64,
pub start_doy: f64,
pub start_utc: f64,
}Fields§
§name: String§width: usize§height: usize§cell_size_m: f32§height_scale_m: f32§sea_level_frac: f32§fbm_params: FbmParams§warp_strength: f32§erosion_params: ErosionParams§thermal_iters: usize§thermal_talus_deg: f32§num_rivers: usize§num_lakes: usize§foliage_density: f32§apply_island_mask: bool§island_falloff: f32§fill_sinks: bool§latitude: f64§longitude: f64§start_doy: f64§start_utc: f64Implementations§
Source§impl WorldGenProfile
impl WorldGenProfile
pub fn default_continental() -> Self
pub fn default_island() -> Self
pub fn default_mountains() -> Self
Trait Implementations§
Source§impl Clone for WorldGenProfile
impl Clone for WorldGenProfile
Auto Trait Implementations§
impl Freeze for WorldGenProfile
impl RefUnwindSafe for WorldGenProfile
impl Send for WorldGenProfile
impl Sync for WorldGenProfile
impl Unpin for WorldGenProfile
impl UnsafeUnpin for WorldGenProfile
impl UnwindSafe for WorldGenProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.