[][src]Trait worldgen::noisemap::NoiseMapGenerator

pub trait NoiseMapGenerator: NoiseMapGeneratorBase + Clone + Mul<i64, Output = ScaledNoiseMap<Self>> {
    fn set<P: Property>(self, property: P) -> Self
    where
        Self: Sized
;
fn set_size(self, size: Size) -> Self
    where
        Self: Sized
;
fn set_seed(self, seed: Seed) -> Self
    where
        Self: Sized
;
fn set_step(self, step: Step) -> Self
    where
        Self: Sized
;
fn get_size(&self) -> Size
    where
        Self: Sized
; }

This trait contains functions used for initially creating and combining noisemaps. (The Mul requirement is used for scaling a noisemap)

Required methods

fn set<P: Property>(self, property: P) -> Self where
    Self: Sized

Set a property on the noise map.

fn set_size(self, size: Size) -> Self where
    Self: Sized

These individual set functions are called by the relevant properties, and while can be called manually, it is nicer to use the generic set function.

fn set_seed(self, seed: Seed) -> Self where
    Self: Sized

fn set_step(self, step: Step) -> Self where
    Self: Sized

fn get_size(&self) -> Size where
    Self: Sized

Returns the size of the noise map.

Loading content...

Implementors

impl<T1: NoiseMapGenerator, T2: NoiseMapGenerator> NoiseMapGenerator for NoiseMapCombination<T1, T2>[src]

impl<T: NoiseProvider> NoiseMapGenerator for NoiseMap<T>[src]

impl<T: NoiseMapGenerator> NoiseMapGenerator for ScaledNoiseMap<T>[src]

Loading content...