C# Class ManicDigger.MapTools.Generators.Noise2DWorldGenerator

Provides a chunk generator that generates chunks using the class Manic Digger (up to 2011-Mar-18) chunk generation algorithm.
Inheritance: WorldGeneratorBase
Afficher le fichier Open project: henon/manic_digger Class Usage Examples

Méthodes publiques

Méthode Description
GetChunk ( int x, int y, int z ) : byte[,,]

Returns the contents of the chunk by its coordinates.

Noise2DWorldGenerator ( ) : System

Initializes a new instance of the DefaultChunkGenerator class.

PopulateChunk ( IMapStorage map, int x, int y, int z ) : void

Populates a chunk using the default Manic Digger chunk generation algorithm.

Private Methods

Méthode Description
GetBlock ( int x, int y, int z, int height, int special ) : int

If param 'special' is equal to 1 then hay fields grows

GetHeight ( int x, int y ) : byte

Method Details

GetChunk() public méthode

Returns the contents of the chunk by its coordinates.
public GetChunk ( int x, int y, int z ) : byte[,,]
x int
y int
z int
Résultat byte[,,]

Noise2DWorldGenerator() public méthode

Initializes a new instance of the DefaultChunkGenerator class.
public Noise2DWorldGenerator ( ) : System
Résultat System

PopulateChunk() public méthode

Populates a chunk using the default Manic Digger chunk generation algorithm.
public PopulateChunk ( IMapStorage map, int x, int y, int z ) : void
map IMapStorage
x int
y int
z int
Résultat void