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

commitCost

commitCost(entity, reservation): void

Spends what reserveCost held back under reservation, as an action’s release does, and pauses each resource’s regeneration. Every other reservation’s hold stays as it is, and a reservation that holds nothing spends nothing.

Parameter Type
entity Entity
reservation ReservationKey

void