defineReservation
defineReservation(
name,reservationKeyOptions?):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. A plugin
defines its own under a scope, as the engine’s cast holds its cost
under ability:cast, so no game’s key shares it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
reservationKeyOptions |
ReservationKeyOptions |