Skip to content

@modoki/engine / index / CreateTestWorldOptions

Interface: CreateTestWorldOptions ​

Testing Harness ​

actions? ​

optional actions?: Record<string, UIActionDef | UIActionHandler>

Named actions dispatchable via .dispatch(name, payload).


dt? ​

optional dt?: number

Seconds per tick (default 1/60).


seed? ​

optional seed?: number

RNG seed → reproducible run (default 1).


systems? ​

optional systems?: TestSystemDef[]

Game systems to register (timeSystem is always registered first).

Built with Modoki.