Skip to content

createGameWorld

createGameWorld(systems?): World

Defined in: packages/engine/src/gameplay/runtime.ts:18

One world per game, and one per test case: a server runs one per room in one process. Its entities dispose what they tracked on the way out. Koota fires onRemove before it drops the trait’s data, so the list is still there to read. The step runs systems, the engine’s own by default.

Parameter Type
systems System[]

World