API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTiledSourceAssetType
The raw parsed Tiled source model, for diagnostics and for tools that need the `.tmj` as authored. It claims no file suffixes: `.tmj` belongs to the runtime `tileMap` type, which is what a bare Tiled path should resolve to. The name is `tiledSource` rather than `tiledMap` because the runtime type next to it is `tileMap`, and two ids one letter apart resolve to the wrong type instead of failing.
import { TiledSourceAssetType } from '@codexo/exojs-tiled'The raw parsed Tiled source model, for diagnostics and for tools that need the `.tmj` as authored.
It claims no file suffixes: `.tmj` belongs to the runtime `tileMap` type, which is what a bare Tiled path should resolve to. The name is `tiledSource` rather than `tiledMap` because the runtime type next to it is `tileMap`, and two ids one letter apart resolve to the wrong type instead of failing.
new(): TiledSourceAssetTypeasset(source: string, options?: TiledLoadOptionsOptions accepted by both the runtime (`TileMap`) and source (`TiledMap`) asset bindings when loading a Tiled map.): AssetA typed, loadable asset reference. Holds config only - no loaded resource.<TiledMapA parsed and validated Tiled map (`.tmj`). `TiledMap` represents the parsed Tiled source format. `TileMap` is the format-independent ExoJS runtime map used for…>createFactory(): AssetFactoryBuilds one kind of runtime resource from normalized source data. A factory owns construction and teardown, and nothing else: it does not fetch, does not decide…<TiledMapDataThe root of a `.tmj` map file., TiledMapA parsed and validated Tiled map (`.tmj`). `TiledMap` represents the parsed Tiled source format. `TileMap` is the format-independent ExoJS runtime map used for…, TiledLoadOptionsOptions accepted by both the runtime (`TileMap`) and source (`TiledMap`) asset bindings when loading a Tiled map.>unacquiredSource?(request: AssetRequestOne request for an asset of a given type, as an identity hook sees it.<TiledLoadOptionsOptions accepted by both the runtime (`TileMap`) and source (`TiledMap`) asset bindings when loading a Tiled map.>, url: string, network: NetworkSnapshot): undefined | { source: TiledMapDataThe root of a `.tmj` map file. }extensions: readonly string[]id: "tiledSource"leaf: AssetLeafWhat an asset type hands out for one of its assets inside a catalog, before the payload has arrived. `'ref'` hands out a deferred AssetRef that resolves once t…<TiledMapA parsed and validated Tiled map (`.tmj`). `TiledMap` represents the parsed Tiled source format. `TileMap` is the format-independent ExoJS runtime map used for…>