loadGame beta
Function of @v12-engine/client/common
ts
export declare function loadGame(game: Game<unknown>): Promise<LoadedGame>;Gets a game (createGame) ready to play in the page: its view fetched (Game.toView()), checked against its rules as the game says (GameInit.checkView: a warning for each thing that does not fit when left out, an error with all of them with 'throw'), and the game registered, so that a replay or a server's welcome that names it finds it (gameById). Once for a game: what launch, appScenes and openEditor do with the game they are given