Terrain Engine 2D  1.10
A 2D Block Engine
TerrainEngine2D.Chunk Class Reference

A chunk of blocks for world rendering and collider generation More...

Inheritance diagram for TerrainEngine2D.Chunk:

Public Member Functions

void InitializeChunk (int chunkSize, int chunkX, int chunkY)
 Setup Chunk More...
 
void ReGenerate (int chunkX, int chunkY)
 Regenerate the chunk when it loads or changes position More...
 

Properties

FluidChunk FluidChunk [get]
 Chunk for rendering fluid More...
 
int ChunkSize [get]
 Side length of the chunk in block units More...
 
int ChunkX [get]
 X position of the chunk in block units More...
 
int ChunkY [get]
 Y position of the chunk in block units More...
 
bool Update [set]
 Whether the Chunk needs to be updated Used to update the mesh when blocks change More...
 

Detailed Description

A chunk of blocks for world rendering and collider generation

Member Function Documentation

◆ InitializeChunk()

void TerrainEngine2D.Chunk.InitializeChunk ( int  chunkSize,
int  chunkX,
int  chunkY 
)

Setup Chunk

◆ ReGenerate()

void TerrainEngine2D.Chunk.ReGenerate ( int  chunkX,
int  chunkY 
)

Regenerate the chunk when it loads or changes position

Parameters
chunkXX coordinate of the chunk (in blocks)
chunkYY coordinate of the chunk (in blocks)

Property Documentation

◆ ChunkSize

int TerrainEngine2D.Chunk.ChunkSize
get

Side length of the chunk in block units

◆ ChunkX

int TerrainEngine2D.Chunk.ChunkX
get

X position of the chunk in block units

◆ ChunkY

int TerrainEngine2D.Chunk.ChunkY
get

Y position of the chunk in block units

◆ FluidChunk

FluidChunk TerrainEngine2D.Chunk.FluidChunk
get

Chunk for rendering fluid

◆ Update

bool TerrainEngine2D.Chunk.Update
set

Whether the Chunk needs to be updated Used to update the mesh when blocks change


The documentation for this class was generated from the following file: