Skip to content

SaveControls beta ​

Interface of @v12-engine/client

ts
export interface SaveControls

What saving needs of where the game is played: the place it is played in, what that was opened with, and what a save is called. Given to the client as it is made (GameClientOptions.saves), which makes its saves of it (client.saves)

Members ​

args ​

ts
args: object;

What the place was opened with, kept with a save: plain data

autosave ​

ts
autosave?: AutosaveOptions;

The game saves by itself, every so many seconds of it (AutosaveOptions)

name ​

ts
name: () => string;

What a new save is called, before the player says otherwise: the mission, the time in it

open ​

ts
open: (slot: string, args: Record<string, unknown>, from: WorldSave) => void;

Opens a saved game: the place it was played in, what that was opened with, and the world as it was saved

slot ​

ts
slot: string;

The place the game is played in, by name, that its saves are kept under and listed by: a scene of an app, or what a page calls it

store ​

ts
store?: Store<SavedGame>;

Where the saves are kept, in place of this browser (Store)