API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceMapObjectDescriptor
A format-neutral view of one map object, as handed to a import('./MapObjectSpawner').MapObjectFactory. The descriptor is what game code writes against: it resolves the two things that differ between authoring formats - stable identity and the dispatch key - and pairs the object with the layer it came from. The parsed object itself stays reachable through object, and the untouched source record through TileMapObject.source.
import { MapObjectDescriptor } from '@codexo/exojs-tilemap'A format-neutral view of one map object, as handed to a import('./MapObjectSpawner').MapObjectFactory.
The descriptor is what game code writes against: it resolves the two things that differ between authoring formats - stable identity and the dispatch key - and pairs the object with the layer it came from. The parsed object itself stays reachable through object, and the untouched source record through TileMapObject.source.
height: numberid: stringkind: null | stringname: stringrotation: numberwidth: numberx: numbery: number