SavesOptions beta
Interface of @v12-engine/client
export interface SavesOptionsWhat 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
log?: Logger;Where what goes wrong is said. The client's log when left out
messages
messages?: Record<string, MessageWords>;The game's own words for why a save is not loaded (GameView.hud.messages): the client's without
open
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
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
registry: () => Registry;The game as its saves are checked against: asked when a list is, so that it is made no sooner
scenes
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
store?: Store<SavedGame>;Where the saves are kept: the browser's when left out (Store)
words
words?: Pick<Words, 'message'>;What a message says in the player's language (client.words): over messages, which it stands in for