API reference

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

I

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: boolean
Whether the level's layer payload lives outside the root document and has to be fetched separately when the level is loaded.
id: string
Stable 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: number
Position in source document order.
name: string
Human-readable level name. Not guaranteed unique.
Adjacency edges declared by the source format; empty when it declares none.
Source