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

Provides a chunk generator that generates chunks using the class Manic Digger (up to 2011-Mar-18) chunk generation algorithm.
상속: WorldGeneratorBase
파일 보기 프로젝트 열기: henon/manic_digger 1 사용 예제들

공개 메소드들

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

비공개 메소드들

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

메소드 상세

GetChunk() 공개 메소드

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

Noise2DWorldGenerator() 공개 메소드

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

PopulateChunk() 공개 메소드

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