Skip to content

API Interface WorldConfig

github-actions[bot] edited this page Dec 1, 2026 · 2 revisions

Interface: WorldConfig

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

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

Properties

activationBudgetMs?

activationBudgetMs?: number;

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

ADR 0615: how many milliseconds of a frame activation's deferred start() calls may take. Default 4.


input?

input?: boolean;

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

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


lobby?

lobby?: LobbyOptions;

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

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:39

Unique within the Engine.


renders?

renders?: boolean;

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

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:59

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:54

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


start?

start?: "playing" | "held";

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

ADR 0615: "held" makes the World's first replacing load enter held at its swap, waiting for WorldHandle.activate(); until then it plays (it may need to step to learn what to load). Default "playing". Server Worlds can't be held.


systems?

systems?: SystemSelection;

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


tags?

tags?: readonly WorldTag[];

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

Default: DEFAULT_WORLD_TAGS.


tickRate?

tickRate?: number;

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

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


timeScale?

timeScale?: number;

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

Starting time scale. Default 1.

Clone this wiki locally