C# Class ManicDigger.MapTools.Generators.WorldGeneratorBase

Provides a convenience implementation of the IChunkGenerator interface. This class is abstract.
Inheritance: IWorldGenerator
显示文件 Open project: henon/manic_digger

Public Methods

Method Description
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.

WorldGeneratorBase ( ) : ManicDigger.Core

Initializes a new instance of the ChunkGeneratorBase class.

Method Details

GetChunk() public abstract method

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

PopulateChunk() public abstract method

Populates the chunk at the given position.
public abstract 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

WorldGeneratorBase() public method

Initializes a new instance of the ChunkGeneratorBase class.
public WorldGeneratorBase ( ) : ManicDigger.Core
return ManicDigger.Core