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
显示文件 Open project: henon/manic_digger Class Usage Examples

Public Methods

Method 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

Method 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 method

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

Noise2DWorldGenerator() public method

Initializes a new instance of the DefaultChunkGenerator class.
public Noise2DWorldGenerator ( ) : System
return System

PopulateChunk() public method

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
return void