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

ActionSlot

Property Type Description
casting? ActionCooldown The cast winding up, in the cooldown’s shape: the rim fills over it and every other slot dims. The engine’s CastingTrait gives left and the ability’s castSeconds gives seconds.
cooldown? ActionCooldown The cooldown it runs. Left out, the slot takes a press.
hotkey? string The key that presses it, as the badge shows it: “1”, “E”. The game binds the key; the bar only shows it, and only where the pointer is fine: a phone has no key, so it shows no badge.
icon ReactNode One Icon.
id string What onPress names the slot by.
label string The accessible name, such as “Bolt”.
locked? boolean Takes no press and draws nothing for it: dim, with no rim, no number and no pop. For a lock that is not the slot’s own, such as the global cooldown another ability started, so the one button the player pressed is the one that moves. A cooldown shows instead.
noResource? number The cost she cannot pay, such as 25 for 25 mana: the icon tints blue and the button shows it. Left out while she can pay. The slot still takes a press, and the rules say why they refuse it.
outOfRange? boolean Whether the target stands beyond the ability’s range: the icon tints red. The slot still takes a press.
pressed? boolean Draws the slot pressed, as a pointer’s press does. Set it while the slot’s hotkey is held, so a key press shows on the button.