GameRun beta
Interface of @v12-engine/client
export interface GameRunA 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
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
readonly client: Accessor<GameClient | undefined>;The client, once the game is on
dispose
dispose(): void;Ends it: its client, its listeners, its recording (whose replay is handed over, when it lasted)
failed
readonly failed: Accessor<CrashReport | undefined>;Why the game could not be loaded: its report (CrashReport, kind: 'load')
name
readonly name: string;The name the run goes by: the scene, or the app, it was started for
progress
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
start(place: GameRunPlace): void;Loads the game where it is drawn, and starts it once its first frames are ready: once