[][src]Struct worldgen::world::World

pub struct World<T> { /* fields omitted */ }

The World class.

NM is the NoiseMap class, T is the type for each tile. See the module documentation for for information.

Implementations

impl<T: Clone> World<T>[src]

pub fn new() -> World<T>[src]

Constructs a new world using a given noisemap

pub fn add(self, tile: Tile<T>) -> World<T>[src]

Add a tile definition to the world

pub fn set<P: Property>(self, property: P) -> World<T>[src]

Set a property on the world

pub fn set_size(self, size: Size) -> World<T>[src]

pub fn generate(&self, chunk_x: i64, chunk_y: i64) -> Option<Vec<Vec<T>>>[src]

Trait Implementations

impl<T> Default for World<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for World<T>

impl<T> !Send for World<T>

impl<T> !Sync for World<T>

impl<T> Unpin for World<T> where
    T: Unpin

impl<T> !UnwindSafe for World<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.