API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classLdtkMap
A parsed LDtk world document: holds the raw JSON data and the converted runtime TileMap for each level. `LdtkMap` is the parsed source model. Each LDtk level is independently convertible to a format-independent `TileMap`; access them via levels (by document order) or by name via getLevelByName. Construction is cheap — the runtime `TileMap[]` is supplied externally (built by import('./ldtkToTileMap').ldtkToTileMap). The map does **not** own tileset textures; those remain in the Loader cache.
import { LdtkMap } from '@codexo/exojs-ldtk' A parsed LDtk world document: holds the raw JSON data and the converted runtime TileMap for each level.
`LdtkMap` is the parsed source model. Each LDtk level is independently convertible to a format-independent `TileMap`; access them via levels (by document order) or by name via getLevelByName.
Construction is cheap — the runtime `TileMap[]` is supplied externally (built by import('./ldtkToTileMap').ldtkToTileMap). The map does **not** own tileset textures; those remain in the Loader cache.
new(source: string, data: LdtkData, levels: readonly TileMap[]): LdtkMap destroy(): void getLevelByName(identifier: string): TileMap | undefined data: LdtkData levels: readonly TileMap[] source: string