SceneHookRegistry
Defined in: SceneHooks.ts:31
Internal
Registry of scene hooks. Held by the engine, consumed by the SceneManager.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SceneHookRegistry():
SceneHookRegistry
Returns
Section titled “Returns”SceneHookRegistry
Methods
Section titled “Methods”_setErrorBoundary()
Section titled “_setErrorBoundary()”_setErrorBoundary(
boundary):void
Defined in: SceneHooks.ts:41
Internal
Wire the error boundary. Called once from Engine’s constructor, since
this registry is constructed directly rather than resolved through
EngineContext.
Parameters
Section titled “Parameters”boundary
Section titled “boundary”Returns
Section titled “Returns”void
register()
Section titled “register()”register(
hooks): () =>void
Defined in: SceneHooks.ts:45
Parameters
Section titled “Parameters”Returns
Section titled “Returns”() => void
runAfterExit()
Section titled “runAfterExit()”runAfterExit(
scene):void
Defined in: SceneHooks.ts:72
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
runBeforeEnter()
Section titled “runBeforeEnter()”runBeforeEnter(
scene):Promise<void>
Defined in: SceneHooks.ts:58
Run all beforeEnter hooks serially. A throwing hook is reported
through the error boundary and rethrown, stopping later hooks —
propagation to the caller (SceneManager) is unchanged.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<void>