API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeMapLevelProvider
Produces the runtime TileMap for one level - the single seam where a source format meets the format-neutral world runtime. Anything awaitable is accepted, so a provider can hand back a LoaderScope.load queue directly. The returned map becomes **owned by that level runtime**, which destroys it on unload. Return a map built for this load; handing back a shared map (an entry of an eagerly converted document, say) makes the runtime destroy an object other code still holds.
import { MapLevelProvider } from '@codexo/exojs-tilemap'Produces the runtime TileMap for one level - the single seam where a source format meets the format-neutral world runtime.
Anything awaitable is accepted, so a provider can hand back a LoaderScope.load queue directly.
The returned map becomes **owned by that level runtime**, which destroys it on unload. Return a map built for this load; handing back a shared map (an entry of an eagerly converted document, say) makes the runtime destroy an object other code still holds.
(context: MapLevelLoadContextWhat a MapLevelProvider is given for one level load.) => PromiseLike<TileMapA generic, format-independent tile map. Owns a finite grid of TileLayers and a shared set of TileSets. Tile data is stored in compact chunked arrays - no per-t…> | TileMapA generic, format-independent tile map. Owns a finite grid of TileLayers and a shared set of TileSets. Tile data is stored in compact chunked arrays - no per-t…