watchReplay beta
Function of @v12-engine/client/app
ts
export declare function watchReplay(replay: Replay, options: {
game: Pick<LoadedGame, 'rules' | 'view'>;
at?: number;
canvas: HTMLCanvasElement;
overlay: HTMLCanvasElement;
client?: GameRunContext['client'];
bar?: Own<ReplayBarProps>;
navigation?: NavigationBuilds;
}): Promise<GameClient>;A replay played back where the caller says, as a watcher saw it, with the bar that plays it over it (hold, faster, slower, on to any moment): the client of it, made of the game it is of (game: its rules and its view), from at. What replayScene shows, and what the editor opens a replay of a map in, in the place of the scene. bar as replayScene's. The client is the caller's: what plays the replay goes with it