Skip to content

GameRun beta ​

Interface of @v12-engine/client

ts
export interface GameRun

A game being run (runGame): how far it has loaded, its client once it is on, why it could not be loaded, and what the error screen offers. Plain signals: what draws it reads them, in Solid or not

Members ​

actions ​

ts
actions(from?: WorldSave): ErrorActions;

What there is to do about a game that stopped (from: where it stood) or could not be loaded: the error screen's buttons

client ​

ts
readonly client: Accessor<GameClient | undefined>;

The client, once the game is on

dispose ​

ts
dispose(): void;

Ends it: its client, its listeners, its recording (whose replay is handed over, when it lasted)

failed ​

ts
readonly failed: Accessor<CrashReport | undefined>;

Why the game could not be loaded: its report (CrashReport, kind: 'load')

name ​

ts
readonly name: string;

The name the run goes by: the scene, or the app, it was started for

progress ​

ts
readonly progress: Accessor<{
        done: number;
        total: number;
        parts?: PreloadProgress['parts'];
    }>;

Files of the game there and to come, while it loads them: nothing to count until the world is made

start ​

ts
start(place: GameRunPlace): void;

Loads the game where it is drawn, and starts it once its first frames are ready: once