Skip to content

GoTo beta ​

Interface of @v12-engine/client/app

ts
export interface GoTo

Opens a scene, ending the one shown as it comes in (SceneTransition), with what it takes. With no scene, the one the app starts with (startApp's start: a game's start screen), or the list of scenes where it starts with none

Members ​

(call) ​

ts
<A extends object>(scene?: SceneRef<A>, args?: SceneArgs<A>): void;

Opens the scene scene names with args, typed by the scene's own arguments

(call) ​

ts
(scene?: string, args?: SceneArgs<Record<string, unknown>>): void;

Opens one by its id alone, as the page's address or a save names it: what it is opened with is not checked