API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceMapLevel
@codexo/exojs-tilemap / tilemap / stable
Immutable metadata for one level of a MapWorld - everything needed to decide whether to load it, without loading it.
7
props
0
methods
0
events
Import
import { MapLevel } from '@codexo/exojs-tilemap'Immutable metadata for one level of a MapWorld - everything needed to decide whether to load it, without loading it.
Properties7
Placement and size in world pixel space.
external: booleanWhether the level's layer payload lives outside the root document and has to be fetched separately when the level is loaded.
id: stringStable identity, unique within the world. Carried from the source format (LDtk uses the level iid), so it survives re-ordering and re-export and is safe to persist in a savegame.
index: numberPosition in source document order.
name: stringHuman-readable level name. Not guaranteed unique.
neighbours: readonly MapLevelNeighbourOne adjacency edge from a level to another level in the same MapWorld.[]Adjacency edges declared by the source format; empty when it declares none.
Source