Skip to content

Documentation / @debuffjp/dev / ReplayStep

Type Alias: ReplayStep ​

ReplayStep = { wait: number; } | { press: string; } | { release: string; } | { pointerDown: [number, number]; } | { pointerMove: [number, number]; } | { pointerUp: true; } | { wheel: number | [number, number]; } | { touchDown: [number, number, number] | [number, number, number, "pen"]; } | { touchMove: [number, number, number]; } | { touchUp: number; } | { pad: PadStep | null; } | { set: Record<string, ParamValue>; } | { args?: unknown[]; command: string; } | { checkpoint: Checkpoint; }

Defined in: dev/src/replay.ts:11

A scenario step, as debuff scenario runs it (kept structural so dev doesn't depend on the CLI).

Union Members ​

Type Literal ​

{ wait: number; }


Type Literal ​

{ press: string; }


Type Literal ​

{ release: string; }


Type Literal ​

{ pointerDown: [number, number]; }


Type Literal ​

{ pointerMove: [number, number]; }


Type Literal ​

{ pointerUp: true; }


Type Literal ​

{ wheel: number | [number, number]; }

Wheel scroll in CSS pixels: dy, or [dy, dx].


Type Literal ​

{ touchDown: [number, number, number] | [number, number, number, "pen"]; }

Touch contacts by id, in logical coordinates. A pen adds "pen".


Type Literal ​

{ touchMove: [number, number, number]; }


Type Literal ​

{ touchUp: number; }


Type Literal ​

{ pad: PadStep | null; }

The gamepad state from this tick's poll on (null = disconnected). Only changes are recorded.


Type Literal ​

{ set: Record<string, ParamValue>; }


Type Literal ​

{ args?: unknown[]; command: string; }


Type Literal ​

{ checkpoint: Checkpoint; }

What the game's state was at this tick when it was recorded, so a replay can tell when it stops matching.