C# Class ManicDigger.MapTools.Generators.ExperimentalWorldGenerator

Provides a chunk generator that uses an experimental algorithm to create unusual or weird structures.
Inheritance: WorldGeneratorBase
显示文件 Open project: henon/manic_digger

Public Methods

Method Description
ExperimentalWorldGenerator ( ) : System

Initializes a new instance of the ExperimentalChunkGenerator class.

GetChunk ( int x, int y, int z ) : byte[,,]

Returns the contents of the chunk by its coordinates.

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

Populates the chunk at the given position.

SetSeed ( int seed ) : void

Sets the seed that is used to create chunks.

Private Methods

Method Description
UpdateValues ( ) : void

Method Details

ExperimentalWorldGenerator() public method

Initializes a new instance of the ExperimentalChunkGenerator class.
public ExperimentalWorldGenerator ( ) : System
return System

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[,,]

PopulateChunk() public method

Populates the chunk at the given position.
public PopulateChunk ( IMapStorage map, int x, int y, int z ) : void
map IMapStorage The instance containing the map.
x int The x-position of the chunk to populate.
y int The y-position of the chunk to populate.
z int The z-position of the chunk to populate.
return void

SetSeed() public method

Sets the seed that is used to create chunks.
public SetSeed ( int seed ) : void
seed int A long integer representing the seed that is used to create chunks.
return void