C# 클래스 ManicDigger.MapTools.Generators.WorldGeneratorBase

Provides a convenience implementation of the IChunkGenerator interface. This class is abstract.
상속: IWorldGenerator
파일 보기 프로젝트 열기: henon/manic_digger

공개 메소드들

메소드 설명
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.

메소드 상세

GetChunk() 공개 추상적인 메소드

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
리턴 byte[,,]

PopulateChunk() 공개 추상적인 메소드

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.
리턴 void

SetSeed() 공개 메소드

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.
리턴 void

WorldGeneratorBase() 공개 메소드

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