command · command.infrastructure

Cancel infrastructure work

Cancels one current infrastructure project through Construction, Work, Actor, Resource, and World owners.

command.infrastructure.cancel(infrastructure_id, expected_revision) -> command.receipt
Stable ID
command.infrastructure.cancel
Owner
game.infrastructure-construction
Authority
request
Timing
fixed_tick
Availability
active-session
Side effects
may release Work, return delivered materials, and restore the retained World plan
Determinism
record request and owner result in engine sequence order
Introduced
1.19.0

Usage

Cancel one current road, fence, or gate project using the infrastructure identity and project revision returned by world.infrastructure.construction. Construction coordinates Work release, Resource return, Actor handoff, and restoration of the World plan.

Parameters

Returns

A fixed-tick command receipt with the owner result. A stale revision or rejected owner transaction changes no state.

Cost

One indexed project lookup plus bounded transactional cleanup through Construction, Work, Actor, Resource, and World.

Fields

IDTypeUnitsRequiredDescription
expected_revisionrevisionnoneyesExpected infrastructure-construction project revision.
infrastructure_idstable-idnoneyesCurrent World infrastructure identity.

Errors

Examples

command.submit("command.infrastructure.cancel", {infrastructure_id = project.infrastructure_id, expected_revision = project.revision}, 1)

API history

Related symbols

Project references