API reference

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

C

classMapLevelRuntime

@codexo/exojs-tilemap / tilemap / stable

One loaded level and everything that load produced. Created by MapWorldRuntime.loadLevel; destroying it unloads the level. There is nothing else to release afterwards - the map, the spawned objects and the level's asset claims all end here.

6
props
1
methods
0
events
Import
import { MapLevelRuntime } from '@codexo/exojs-tilemap'

One loaded level and everything that load produced.

Created by MapWorldRuntime.loadLevel; destroying it unloads the level. There is nothing else to release afterwards - the map, the spawned objects and the level's asset claims all end here.

Methods1
destroy(): void
Unload the level: destroy the spawned objects (reverse spawn order), then the map, then release the level's asset claims. Idempotent. The scope goes last because everything before it may still be reading a texture the scope keeps resident.
Properties6
id: string
MapLevel.id of the loaded level.
destroyed: boolean
Whether this level has been unloaded.
Source