Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

rounds

const rounds: PluginFactory<[unknown], Plugin<FlatSystemHandles<object & object & object & object>, Readonly<Record<never, never>>, Readonly<Record<never, never>>, never, { restart: CommandDeclaration<{ }, NotEnded | NoScene, undefined, false, false, false>; start: CommandDeclaration<{ automatic: BooleanCommandField; }, NotReady, undefined, false, false, false>; }, Readonly<Record<never, never>>>>

The round: its score, its clock, and its win or loss. List it in a game’s plugins beside machines(), then mount <Round> in a scene to time one. Its handles are on the factory: rounds.systems.advance for a system to run before or after, and rounds.commands for what a page sends.