Skip to content

Sequence

Defined in: Sequence.ts:14

Builds a chain of Processes that run in order. Supports sequential steps, waits, callbacks, and parallel groups.

new Sequence(): Sequence

Sequence

_build(): Process

Defined in: Sequence.ts:88

Internal

Build the sequence into a Process without registering with a scene. Exposed for unit testing.

Process


call(fn): this

Defined in: Sequence.ts:44

Add an instant callback.

() => void

this


loop(): this

Defined in: Sequence.ts:72

Loop the sequence indefinitely.

this


parallel(…steps): this

Defined in: Sequence.ts:61

Run steps in parallel (all must complete before sequence continues).

…(Process | StepFactory)[]

this


repeat(times): this

Defined in: Sequence.ts:78

Repeat the sequence a fixed number of times (1 = play once, 2 = play twice, etc.).

number

this


start(): Process

Defined in: Sequence.ts:135

Build and start the sequence. Returns the wrapping Process.

Process


then(step): this

Defined in: Sequence.ts:20

Add a step (Process or factory function).

Process | StepFactory

this


wait(ms): this

Defined in: Sequence.ts:29

Add a delay in ms.

number

this