SettingsLike beta
Interface of @v12-engine/client/app
ts
export interface SettingsLikeWhat a screen of the settings draws: the settings while a game runs (Settings), or kept with no game running (StoredSettings)
Members
get
ts
get<V extends SettingValue = SettingValue>(id: string): V;What a setting is set to now. A signal: what reads it follows it
list
ts
readonly list: Accessor<readonly SettingDef[]>;Every setting there is, in order: the client's, the game's own after them. A signal
reset
ts
reset(id?: string): void;Puts one setting, or every one on the settings screen, back to what it is when nothing is set
set
ts
set(id: string, value: SettingValue): void;Sets a setting: made to fit it, kept for the next games
shown
ts
shown(def: SettingDef): boolean;Whether the settings screen lists a setting: not hidden, and, while a game runs, its shown says so for it