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

ReadCommand

ReadCommand<Handle> = Handle extends AnyCommandHandle ? object & Handle extends object ? object : object & Handle extends object ? object : unknown : never

A command as its reader holds it: the sender’s player, the entity it acts through where its handle declares entity: true, the payload, checked and resolved, its cause, and the ways to settle it. A predicted command’s also carries its tick and the moment within it she pressed, and has no defer: it runs on its tick.

Type Parameter
Handle