Interface: BoardTiles
Tile-level access + mutation primitives common to every board (sol or atmo). Each board carries its own hexasphere, so ids are scoped to the board: a sol id 42 and an atmo id 42 are unrelated.
Extended by
Properties
tiles
ts
tiles: readonly Tile[];Tiles of this board (sol or atmo hexasphere).
Methods
writeTileColor()
ts
writeTileColor(tileId, rgb): void;Writes a raw RGB value to every vertex of a tile.
Parameters
| Parameter | Type |
|---|---|
tileId | number |
rgb | RGB |
Returns
void
applyOverlay()
ts
applyOverlay(colors): void;Stamps per-tile RGB into the vertex buffer. Same effect as calling writeTileColor once per entry.
Parameters
| Parameter | Type |
|---|---|
colors | Map<number, RGB> |
Returns
void
getTilePosition()
ts
getTilePosition(tileId): Vector3 | null;World-space top-cap centre of a tile. Returns null for unknown ids. Used by overlay renderers that anchor markers on the board.
Parameters
| Parameter | Type |
|---|---|
tileId | number |
Returns
Vector3 | null