API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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(): voidUnload 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: stringMapLevel.id of the loaded level.
Metadata of the loaded level.
The level's runtime map, owned by this runtime.
The level's asset scope. Released last, after everything that could hold an asset is gone.
What the level's spawner produced, or null when the load ran without one.
destroyed: booleanWhether this level has been unloaded.
Source