API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceLdtkLayerInstance
@codexo/exojs-ldtk / ldtk / stable
A layer instance within a level.
11
props
0
methods
0
events
Import
import { LdtkLayerInstance } from '@codexo/exojs-ldtk'A layer instance within a level.
Properties11
autoLayerTiles?: readonly LdtkTileDataA single tile placed in a Tiles or AutoLayer layer instance.[]Auto-computed tiles for AutoLayer (and IntGrid + auto-rules) layer types.
entityInstances?: readonly LdtkEntityInstanceAn entity instance placed in an Entities layer.[]Entity instances for Entities layer type.
gridTiles?: readonly LdtkTileDataA single tile placed in a Tiles or AutoLayer layer instance.[]Placed tiles for Tiles layer type.
iid: stringGlobally unique instance id (UUID string).
intGridCsv?: readonly number[]Flat CSV array of IntGrid values for IntGrid layer type. Index = y * __cWid + x. 0 = empty cell.
layerDefUid: numberUID of the layer definition.
levelId: numberUID of the parent level.
opacity?: numberLayer opacity in [0, 1].
pxOffsetX?: numberHorizontal pixel offset applied to the layer.
pxOffsetY?: numberVertical pixel offset applied to the layer.
visible: booleanSource