Method to add an action to the next prompt.
The target phase for the prompt.
The mode of the UI.
The callback function to execute.
Optional
expireFn: (() => void)The function to determine if the prompt has expired.
Method to run a phase with an optional skip function.
The phase to run.
Optional
skipFn: ((className: PhaseClass) => boolean)Optional skip function.
A promise that resolves when the phase is run.
Remove the current phase from the phase interceptor.
Do not call this unless absolutely necessary. This function is intended for cleaning up the phase interceptor when, for whatever reason, a phase is manually ended without using the phase interceptor.
Whether or not the current scene should also be run.
Constructor to initialize the scene and properties, and to start the phase handling.