Skip to content

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

ParameterType
tileIdnumber
rgbRGB

Returns

void


applyOverlay()

ts
applyOverlay(colors): void;

Stamps per-tile RGB into the vertex buffer. Same effect as calling writeTileColor once per entry.

Parameters

ParameterType
colorsMap<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

ParameterType
tileIdnumber

Returns

Vector3 | null

Distribué sous la licence indiquée dans le dépôt.