API reference

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

I

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
Auto-computed tiles for AutoLayer (and IntGrid + auto-rules) layer types.
Entity instances for Entities layer type.
Placed tiles for Tiles layer type.
iid: string
Globally 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: number
UID of the layer definition.
levelId: number
UID of the parent level.
opacity?: number
Layer opacity in [0, 1].
pxOffsetX?: number
Horizontal pixel offset applied to the layer.
pxOffsetY?: number
Vertical pixel offset applied to the layer.
visible: boolean
Source