Expand description
Demolition, damage and rubble: DestroyComponent. See docs/JOBS.md “Demolition”.
- 3: the work and status icons go; a damaged building goes on to 6, else to 4 with the BuildDestroy icon;
- 4: the building becomes a site again; a finished one with goods has them carried out first (ClearStorage), then 5;
- 5: builders take a started building down (a BuildStructure work with the destroy flag, half its construction work); then it is gone, leaving part of its materials in piles, or what replaces it;
- 6: damaged (burning): the goods are lost; it collapses when its time runs out;
- 7: rubble, to rebuild (message 0) or clear (message 1).
Message 0 in 4 and 5 cancels the demolition.
Original: FUN_140034520, FUN_1401231d0.
Structs§
- Destroy
- The demolition state of a building: the damage time left, whether it is damaged, whether its materials come back, the demolition work done and needed, and what to put in its place.
- Destroy
Template - A resolved [
banished_formats::game::DestroyDescription]. - Rebuild
- An entity put in a torn-down building’s place: its template over the same map rectangle, turned as it was, with its model’s position and variant.