Pixi’VN
indexInterfaces

Interface: GameTestingActions<T>

pixi-vn on GitHub

Defined in: src/core/testing.ts:125

Per-action overrides an app can register via setActions so Game.testing's window-exposed actions run the app's own narration functions — with whatever UI-only side effects they add (loading state, blocking while a menu is open, refreshing cached interface data, ...) — instead of calling narrationUtils.narration / historyUtils.stepHistory directly. Any action left undefined keeps the default behavior.

continue/back take no arguments: the extraProps/options a caller passes to the corresponding GameTestingAPI method are ignored when an override is registered, since the override already has its own way to gather props (and typically doesn't support stepped/replay options). selectChoice receives the resolved choice item instead of the raw choiceIndex, since looking it up is already handled before the override runs.

Type Parameters

T

T extends object = { }

Properties

back?

> optional back?: () => Promise<void>

Defined in: src/core/testing.ts:129

Returns

Promise<void>


call?

> optional call?: (label, props?) => Promise<StepLabelResultType>

Defined in: src/core/testing.ts:139

Parameters

label

string | LabelAbstract<any, T, number>

props?

T

Returns

Promise<StepLabelResultType>


continue?

> optional continue?: () => Promise<void>

Defined in: src/core/testing.ts:128

Returns

Promise<void>


jump?

> optional jump?: (label, props?) => Promise<StepLabelResultType>

Defined in: src/core/testing.ts:135

Parameters

label

string | LabelAbstract<any, T, number>

props?

T

Returns

Promise<StepLabelResultType>


> optional navigate?: (screen) => Promise<void>

Defined in: src/core/testing.ts:127

Optional router-independent screen navigation supplied by the application.

Parameters

screen

string

Returns

Promise<void>


selectChoice?

> optional selectChoice?: (item) => Promise<void>

Defined in: src/core/testing.ts:130

Parameters

item

StoredIndexedChoiceInterface

Returns

Promise<void>


start?

> optional start?: (label, props?) => Promise<void>

Defined in: src/core/testing.ts:131

Parameters

label

string | LabelAbstract<any, T, number>

props?

T

Returns

Promise<void>

On this page