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

HitData

HitData = Register extends object ? Data : Readonly<Record<string, unknown>>

What a game attaches to each hit, such as an element and its dose: the hitData it registers, or any record where it registers none. Plain values, since a room streams it, and a page reads them as the JSON the room held. declare module "@spawnite/engine" { interface Register { hitData: { element: Element; dose: number } } }.