API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classMapSpawnSession
The objects one spawn produced, and their shared lifetime. A session is handed out by import('./MapObjectSpawner').MapObjectSpawner.spawn and owns every result in it. Destroying the session destroys them all; nothing else has to be tracked, and nothing scans the scene to find them again. A session is not reusable - destroy it and spawn again.
import { MapSpawnSession } from '@codexo/exojs-tilemap'The objects one spawn produced, and their shared lifetime.
A session is handed out by import('./MapObjectSpawner').MapObjectSpawner.spawn and owns every result in it. Destroying the session destroys them all; nothing else has to be tracked, and nothing scans the scene to find them again.
A session is not reusable - destroy it and spawn again.
destroy(): voidget(sourceId: string): Result | undefinedhas(sourceId: string): booleanobjects: readonly Result[]destroyed: boolean