Skip to content

API Interface WorldConfig

github-actions[bot] edited this page Nov 24, 2026 · 2 revisions

Interface: WorldConfig

Defined in: src/engine/core/worlds.ts:34

One World, as a declarative bootstrap lists it in project.json or as Engine.createWorld takes it at runtime.

Properties

input?

input?: boolean;

Defined in: src/engine/core/worlds.ts:49

Whether the World receives local input. Default: the World with the main view does.


lobby?

lobby?: LobbyOptions;

Defined in: src/engine/core/worlds.ts:54

Turn on the lobby service in this server World (ADR 0068): see LobbyOptions and the multiplayer guide.


name

name: string;

Defined in: src/engine/core/worlds.ts:36

Unique within the Engine.


renders?

renders?: boolean;

Defined in: src/engine/core/worlds.ts:47

Whether the World wants to draw. Default: true unless it's tagged server. Of the Worlds that want to, the first gets the Engine's main view (the editor tiles the others, ADR 0034).


replication?

replication?: ReplicationSettings;

Defined in: src/engine/core/worlds.ts:56

How this World sends snapshots when it's a network server (ADR 0101). Ignored otherwise.


scenes?

scenes?: readonly string[];

Defined in: src/engine/core/worlds.ts:51

Scenes loaded when the World starts, in order (the first replaces, the rest are additive).


systems?

systems?: SystemSelection;

Defined in: src/engine/core/worlds.ts:52


tags?

tags?: readonly WorldTag[];

Defined in: src/engine/core/worlds.ts:38

Default: DEFAULT_WORLD_TAGS.


tickRate?

tickRate?: number;

Defined in: src/engine/core/worlds.ts:40

Fixed steps per second. Default: 1 / project.time.fixedDeltaTime (60).


timeScale?

timeScale?: number;

Defined in: src/engine/core/worlds.ts:42

Starting time scale. Default 1.

Clone this wiki locally