API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceOccluderTileLayer
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.
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.
tilesInRect(x: number, y: number, width: number, height: number): Iterable<OccluderTileCellOne occupied cell of a tile layer, as TilemapOccluder walks them.<Tile>>offsetX: numberoffsetY: numberrevision: numbertileHeight: numbertileWidth: number