Skip to content

ClientRuntime beta ​

Class of @v12-engine/client/common

ts
export declare class ClientRuntime

What one app of the page runs with: where it keeps things in the browser (storage), where its ground's textures are made and kept (ground), whether it is being developed (dev) and what opens its code (openCode)

Members ​

constructor ​

ts
constructor(options?: RuntimeOptions);

Constructs a new instance of the ClientRuntime class

dev ​

ts
readonly dev: boolean;

Whether the app is one being developed (RuntimeOptions.dev)

dispose ​

ts
dispose(): void;

Lets go of what the app made for itself: the ground's worker and the textures kept, its sound, and whatever else was kept for it

ground ​

ts
readonly ground: GroundWorks;

Where the ground's textures made in code are made (its worker, or this thread) and kept, for the app's life

mixer ​

ts
mixer(): Promise<AppMixer>;

The sound of the whole app (AppMixer), one for as long as it stands: what its scenes attach to, and music goes from scene to scene through. Fetched as it is first asked for: an app with no sound fetches none of it

onDispose ​

ts
onDispose(listener: () => void): void;

Told as the app goes: what was kept for its life goes with it

openCode ​

ts
get openCode(): OpenCode | undefined;

set openCode(open: OpenCode | undefined);

What opens the project's code at a place (a line of a stack in the console), where there is something to: a signal, the console offers to open a place only while it is set. The map editor sets it while its dev server's plugin is there

storage ​

ts
readonly storage: KeptStorage;

What the app keeps in the browser, under its name

stores ​

ts
readonly stores: RuntimeStores;

Where it keeps the player's saves and settings, where not in the browser (RuntimeOptions.stores): none of them when it was given none