Sequence
Defined in: Sequence.ts:14
Builds a chain of Processes that run in order. Supports sequential steps, waits, callbacks, and parallel groups.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Sequence():
Sequence
Returns
Section titled “Returns”Sequence
Methods
Section titled “Methods”_build()
Section titled “_build()”_build():
Process
Defined in: Sequence.ts:88
Internal
Build the sequence into a Process without registering with a scene. Exposed for unit testing.
Returns
Section titled “Returns”call()
Section titled “call()”call(
fn):this
Defined in: Sequence.ts:44
Add an instant callback.
Parameters
Section titled “Parameters”() => void
Returns
Section titled “Returns”this
loop()
Section titled “loop()”loop():
this
Defined in: Sequence.ts:72
Loop the sequence indefinitely.
Returns
Section titled “Returns”this
parallel()
Section titled “parallel()”parallel(…
steps):this
Defined in: Sequence.ts:61
Run steps in parallel (all must complete before sequence continues).
Parameters
Section titled “Parameters”…(Process | StepFactory)[]
Returns
Section titled “Returns”this
repeat()
Section titled “repeat()”repeat(
times):this
Defined in: Sequence.ts:78
Repeat the sequence a fixed number of times (1 = play once, 2 = play twice, etc.).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”this
start()
Section titled “start()”start():
Process
Defined in: Sequence.ts:135
Build and start the sequence. Returns the wrapping Process.
Returns
Section titled “Returns”then()
Section titled “then()”then(
step):this
Defined in: Sequence.ts:20
Add a step (Process or factory function).
Parameters
Section titled “Parameters”Process | StepFactory
Returns
Section titled “Returns”this
wait()
Section titled “wait()”wait(
ms):this
Defined in: Sequence.ts:29
Add a delay in ms.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”this