CONTENT CONTRACT · VERSION 1
structure_destroyed
A structure's health reached zero and it collapsed.
Signature
{ definition: StructureId, kind: "structure_destroyed", source: (ActorRef)?, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
definition | StructureId | Structure definition of the target. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure |
kind | "structure_destroyed" | Discriminant |
source | ActorRef | Confirmed origin of the damage; absent for environmental sources. Length: 1…256; Pattern: ^[\s\S]+$ |
target | ActorRef | Destroyed structure. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"definition": "core:wood_wall_structure",
"kind": "structure_destroyed",
"source": "a2",
"target": "s1"
}