dev? |
boolean |
Whether the world is a dev world, whose warnings print: true when left out, for the test or the agent stepping it. A room passes whether it allows edits. |
game? |
GameDescriptor |
The game, as defineGame made it and Game takes it: each step runs what its plugins compose around the core, its physics scene steps the world, and the world plays the first of its levels. The core alone when left out. |
plugins? |
readonly Plugin<Readonly<Record<string, SystemHandle<"input" | "rules" | "motion" | "physics", boolean, RunContext>>>, Readonly<Record<string, ButtonInputDeclaration | AxisInputDeclaration | VectorInputDeclaration | AngleInputDeclaration>>, Readonly<Record<string, PageActionDeclaration>>, string, Readonly<Record<string, CommandDeclaration<Readonly<Record<string, CommandField>>, string, Readonly<Record<string, ReturnField>> | undefined, boolean, boolean, boolean, boolean>>>, Readonly<Record<string, InputContextDeclaration>>, Readonly<Record<string, SaveHandle<"player" | "world" | "entity">>>>[] |
A test’s own plugins, for a case with no game of its own: the world runs what they compose around the core, with every other default. game takes precedence. |
scene |
HeadlessScene |
The scene, as a function that spawns its entities into the world, such as the spawnCoins of Headless tests. |
seed? |
number |
The map seed; the default map’s when left out. |
tickRate? |
30 | 60 |
The ticks a second the world steps at: its game’s defineRoom rate when left out, 60 for a game with no room. A room passes the rate its start resolved. |
unixSeconds? |
number |
The Unix seconds the world’s clock stands at on its first tick, as readUnixSeconds reads them: defaultUnixSeconds, 2000-01-01T00:00:00Z, when left out, so two runs read the same. A room passes its wall. |