API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeMapObjectFactory
@codexo/exojs-tilemap / tilemap / stable
Creates one runtime object from one map object, or `null` to deliberately create nothing for it. `signal` aborts with the spawn it belongs to; a factory that loads assets or awaits anything else should pass it on, so a level unloaded mid-load stops its own work too.
0
props
0
methods
0
events
Import
import { MapObjectFactory } from '@codexo/exojs-tilemap'Creates one runtime object from one map object, or `null` to deliberately create nothing for it.
`signal` aborts with the spawn it belongs to; a factory that loads assets or awaits anything else should pass it on, so a level unloaded mid-load stops its own work too.
Definition1
(object: MapObjectDescriptorA format-neutral view of one map object, as handed to a import('./MapObjectSpawner').MapObjectFactory. The descriptor is what game code writes against: it reso…, context: Context, signal: AbortSignal) => Promise<Result | null> | Result | nullSource