Skip to main content

Module grid

Module grid 

Source

Structs§

Chunk
A terrain chunk that contains a list of terrain tiles.
Grid
The main terrain grid resource that holds all the terrain chunks and their respective tiles.

Enums§

GridEntityEvent

Constants§

CHUNK_GRID_SUBDIVISIONS
The number of subdivisions per chunk in the grid system (number of grid cells per chunk).
TILE_SIZE
The size of a single tile in the grid system.

Type Aliases§

GridChunkPos
The position of a chunk in the grid, represented as (x, z) coordinates.
GridLocalPos
The local position of a tile within a chunk, represented as (x, z) coordinates.
GridTilePos
The full position in the grid