API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceOccluderTileLayer

@codexo/exojs-lighting / lighting / stable

What TilemapOccluder needs of a tile layer: its cell metrics, a way to walk the cells of a region, and a revision that changes when the cells do. Structural on purpose, and generic over whatever a layer calls a tile, so `@codexo/exojs-tilemap`'s `TileLayer` satisfies it as it stands while this package depends on neither it nor physics. Anything else that can answer "which cells are occupied around here" works as well.

5
props
1
methods
0
events
Import
import { OccluderTileLayer } from '@codexo/exojs-lighting'

What TilemapOccluder needs of a tile layer: its cell metrics, a way to walk the cells of a region, and a revision that changes when the cells do.

Structural on purpose, and generic over whatever a layer calls a tile, so `@codexo/exojs-tilemap`'s `TileLayer` satisfies it as it stands while this package depends on neither it nor physics. Anything else that can answer "which cells are occupied around here" works as well.

Methods1
tilesInRect(x: number, y: number, width: number, height: number): Iterable<OccluderTileCellOne occupied cell of a tile layer, as TilemapOccluder walks them.<Tile>>
Properties5
offsetX: number
offsetY: number
revision: number
Changes whenever a cell does. Outlines are rebuilt only when it moves, so a streamed chunk arriving is enough.
tileHeight: number
tileWidth: number
Source