Skip to content

LSDE Dialog Engine / SceneContext

Interface: SceneContext ​

Defined in: types.ts:434

Context passed to scene lifecycle handlers.

Properties ​

error? ​

optional error?: unknown

Defined in: types.ts:447

With faulted: what was thrown — the fault that closed the scene, not a cleanup that failed while it closed.

The same error is ALSO re-thrown, to whoever entered the walk: in a game that is a click or a timer calling next(), never the code awaiting the end of the scene — which is why it is handed here as well. Log it in one of the two places, not both.


reason? ​

optional reason?: SceneEndReason

Defined in: types.ts:436

Why the scene ended. Set for onSceneExit only — absent for onSceneEnter.


waitingFor? ​

optional waitingFor?: readonly string[]

Defined in: types.ts:438

With deadlocked: the blocks the parked tracks were still waiting for, each once.