C# Класс ManicDigger.MapTools.Generators.WorldGeneratorBase

Provides a convenience implementation of the IChunkGenerator interface. This class is abstract.
Наследование: IWorldGenerator
Показать файл Открыть проект

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

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