Connect physical elevators and staff commutes to construction, saves, and cutaway UI

This commit is contained in:
Takeshi
2026-09-09 12:58:40 +09:00
parent 4d72de8973
commit 0f12c748e9
46 changed files with 3267 additions and 165 deletions
@@ -468,6 +468,12 @@ func demolish_facility(
})
_facilities.erase(instance_id)
# A completed construction job owns its live facility. Once demolition has
# committed, retire both records so snapshots cannot retain an orphaned
# COMPLETED job. Sequence counters and emitted domain events retain history.
var source_job_id := StringName(instance.get(&"source_job_id", &""))
_jobs.erase(source_job_id)
_last_progress_minutes.erase(source_job_id)
_mutation_in_progress = false
facility_demolished.emit(instance_id, refund)
return CommandResultType.succeeded(0, {