API reference

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

I

interfaceTiledLoadOptions

@codexo/exojs-tiled / tiled / stable

Options accepted by both the runtime (`TileMap`) and source (`TiledMap`) asset bindings when loading a Tiled map.

1
props
0
methods
0
events
Import
import { TiledLoadOptions } from '@codexo/exojs-tiled'

Options accepted by both the runtime (`TileMap`) and source (`TiledMap`) asset bindings when loading a Tiled map.

Properties1
format?: "tiled"
Explicit format hint for ambiguous file extensions. .tmj/.tsj paths are recognised by extension and need no hint. Provide format: 'tiled' when loading Tiled map data from a generic .json path: loader.load(Asset.type('tileMap', 'world.json', { format: 'tiled' })). 'tiled' is the only accepted value, so a foreign format (e.g. 'ldtk') is a compile error rather than a silent runtime fall-through. The hint participates in the asset identity key, so the same source loaded under different (future) formats resolves to distinct cache entries.
Source