OnlineSceneOptions beta
Interface of @v12-engine/client/app
ts
export interface OnlineSceneOptionsWhat an online scene is made with (onlineScene): its id, name, server, games, lobby, settings store and exit
Members
exit
ts
exit?: GameScene['exit'];Where the HUD's way out of the game goes, as GameScene.exit takes it
id
ts
id?: string;The scene's id; a default for the game when left out
lobby
ts
lobby?: Own<LobbyProps>;The lobby as the game draws it: a component or an element, given the lobby (LobbyController). The client's (LobbyScreen) when left out
name
ts
name?: string;What the scene is called in the list of scenes
rules
ts
rules?: Rules | Record<string, Rules>;The games the page has, for the one the server runs: every game the page knows when left out
settingsStore
ts
settingsStore?: SettingsStore;Where the player's name is kept, and their settings: the browser's when left out
url
ts
url?: string;The server's address: url the scene is opened with (OnlineArgs), ?server= of the page, or port 8787 of this machine when left out