Skip to content

watchScene beta ​

Function of @v12-engine/client/app

ts
export declare function watchScene(options: {
    id: string;
    name: string;
    key: string;
    rules: Rules;
    view: GameView | (() => Promise<GameView>);
    exit?: GameScene['exit'];
    waiting?: Own<WatchWaitingProps>;
}): GameScene;

Watches a game shared under key from another page: everything in sight, from the side of whoever plays it, their lines and cinematics too; nothing to command. It waits for the game to be shared, and when it ends (a mission over), for the next one. waiting is the screen while it waits as the game draws it: a component or an element, given what is watched and what is waited for (WatchingController). The client's (WatchWaiting) when left out