Chunk

Represents a chunk of blocks.

Members

Functions

addImpl
void addImpl(T items)
Undocumented in source. Be warned that the author may not have intended to support it.
addX
void addX(T items)
addY
void addY(T items)

Add multiple items.

find
inout(Block*) find(Vector2I position)
Undocumented in source. Be warned that the author may not have intended to support it.
makeModel
IsodiModel makeModel(Texture2D texture)

Make model for the chunk.

Variables

atlas
BlockUV[BlockType] atlas;

Mapping of block types to their position in the texture.

blocks
Block[Vector2I] blocks;

Blocks making up the chunk.

properties
Properties properties;

Properties of the chunk.

seed
ulong seed;

Seed to use to generate variants on this chunk.

Meta