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

refundCost

refundCost(writer, entity, reservation): void

Gives back what reserveCost held back under reservation, as a cancelled action does, up to each resource’s maximum less what the other reservations still hold. A predicted write, as changeResource.

Parameter Type
writer PredictedStep
entity PredictedEntity
reservation ReservationKey

void

refundCost(writer, entity, reservation): void

Gives back what reserveCost held back under reservation, as a cancelled action does, up to each resource’s maximum less what the other reservations still hold. A predicted write, as changeResource.

Parameter Type
writer EntityAuthority
entity Entity
reservation ReservationKey

void