API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceReadonlyTileChunk
@codexo/exojs-tilemap / tilemap / stable
Public readonly view of a tile chunk. Provides read-only inspection access for iteration, queries, and the future renderer. The underlying storage is never exposed directly.
6
props
2
methods
0
events
Import
import { ReadonlyTileChunk } from '@codexo/exojs-tilemap'Public readonly view of a tile chunk.
Provides read-only inspection access for iteration, queries, and the future renderer. The underlying storage is never exposed directly.
Methods2
cloneTiles(): Uint32ArrayCreate a defensive copy of the tile data. The caller owns the copy; mutation of the returned array cannot affect the chunk.
getRawAt(lx: number, ly: number): numberRead the raw packed tile word at local-in-chunk coordinates. Returns 0 for empty.
Properties6
cx: numberSigned chunk X coordinate.
cy: numberSigned chunk Y coordinate.
empty: booleanWhether every cell is empty (all-zero).
height: numberHeight of this chunk in tiles.
revision: numberMonotonic revision counter. Increments on every cell mutation within this chunk. No-ops (writing same value) do NOT increment.
width: numberWidth of this chunk in tiles.
Source