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

defineReservation

defineReservation(name): ReservationKey

Defines the key a mechanic holds its cost under, such as "strike", which reserveCost, commitCost and refundCost take. Called once, at module scope; one name defined in two places is one key. The engine’s cast holds its cost under ability:cast, so no game’s key shares it.

Parameter Type
name string

ReservationKey