commitCost
Call Signature
Section titled “Call Signature”commitCost(
writer,entity,reservation):void
Spends what reserveCost held back under reservation, as an
action’s release does, writing the step’s tick into each resource’s
spentTick, which pauses its regeneration. Every other reservation’s
hold stays as it is, and a reservation that holds nothing spends
nothing. A predicted write, as changeResource.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
PredictedStep |
entity |
PredictedEntity |
reservation |
ReservationKey |
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”commitCost(
writer,entity,reservation):void
Spends what reserveCost held back under reservation, as an
action’s release does, writing the step’s tick into each resource’s
spentTick, which pauses its regeneration. Every other reservation’s
hold stays as it is, and a reservation that holds nothing spends
nothing. A predicted write, as changeResource.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
reservation |
ReservationKey |
Returns
Section titled “Returns”void