Skip to content

SavesOptions beta ​

Interface of @v12-engine/client

ts
export interface SavesOptions

What the saves of a place are made from: where they are listed from, opened to, and (for a game being played) taken from

Members ​

log ​

ts
log?: Logger;

Where what goes wrong is said. The client's log when left out

messages ​

ts
messages?: Record<string, MessageWords>;

The game's own words for why a save is not loaded (GameView.hud.messages): the client's without

open ​

ts
open: (scene: 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

playing ​

ts
playing?: {
        session: () => GameSession;
        scene: string;
        args: object;
        name: () => string;
        seconds?: () => number;
        picture?: () => Promise<string | undefined>;
    };

seconds: how long the game has gone on, for the name a save is given (0 when left out)

registry ​

ts
registry: () => Registry;

The game as its saves are checked against: asked when a list is, so that it is made no sooner

scenes ​

ts
scenes: readonly string[];

The places whose saves are listed, by name: a scene of an app, or what a page calls where its game is played

store ​

ts
store?: Store<SavedGame>;

Where the saves are kept: the browser's when left out (Store)

words ​

ts
words?: Pick<Words, 'message'>;

What a message says in the player's language (client.words): over messages, which it stands in for