Interface: GameStore — Kata docs
Kata docs

kata-framework


Interface: GameStore

Defined in: packages/kata-core/src/runtime/store.ts:11

Extends

Properties

ctx

ctx: Record<string, any>;

Defined in: packages/kata-core/src/runtime/store.ts:5

Inherited from

GameState.ctx


currentActionIndex

currentActionIndex: number;

Defined in: packages/kata-core/src/runtime/store.ts:7

Inherited from

GameState.currentActionIndex


currentSceneId

currentSceneId: string | null;

Defined in: packages/kata-core/src/runtime/store.ts:6

Inherited from

GameState.currentSceneId


history

history: string[];

Defined in: packages/kata-core/src/runtime/store.ts:8

Inherited from

GameState.history


nextAction

nextAction: () => void;

Defined in: packages/kata-core/src/runtime/store.ts:14

Returns

void


restoreState

restoreState: (snapshot) => void;

Defined in: packages/kata-core/src/runtime/store.ts:15

Parameters

snapshot
ctx

Record<string, any>

currentActionIndex

number

currentSceneId

string | null

history

string[]

Returns

void


setScene

setScene: (sceneId) => void;

Defined in: packages/kata-core/src/runtime/store.ts:13

Parameters

sceneId

string

Returns

void


setVariable

setVariable: (key, value) => void;

Defined in: packages/kata-core/src/runtime/store.ts:12

Parameters

key

string

value

any

Returns

void