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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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