Skip to content

@caoergou/windows-xp / index / Scenario

Interface: Scenario

Defined in: src/scenario/types.ts:210

A complete scenario: initial flags + the trigger rulebook.

Properties

id

> id: string

Defined in: src/scenario/types.ts:212

Stable id (namespaces persisted progress; changing it starts fresh).


initialFlags?

> optional initialFlags?: Record<string, FlagValue>

Defined in: src/scenario/types.ts:214

Flags seeded before any trigger runs.


rehearsal?

> optional rehearsal?: RehearsalPlan

Defined in: src/scenario/types.ts:229

Optional canonical walkthrough for the rehearsal/seek engine (#207) and the headless solver's regression input. Omit for scenarios that don't need fast-forward.


strings?

> optional strings?: Partial<Record<string, Record<string, string>>>

Defined in: src/scenario/types.ts:223

Per-locale beat-text tables (#207). Actions reference an entry by key (titleKey, bodyKey, textKey, contentKey); the runtime resolves it against the active UI locale. Lets a writer localize/polish the script without touching the logic.


triggers

> triggers: Trigger[]

Defined in: src/scenario/types.ts:216

The rulebook.