CONTENT CONTRACT · VERSION 1
structure_repaired
An actor repaired a structure.
Signature
{ actor: ActorRef, amount: Count, complete: boolean, definition: StructureId, kind: "structure_repaired", player: (PlayerRef)?, position: Position, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
amount | Count | Health restored. Range: 0…2147483647; Unit: hp |
complete | boolean | Whether the repair restored a finished structure to full health. |
definition | StructureId | Structure definition at the committed repair. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure |
kind | "structure_repaired" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Position at the committed repair. |
target | ActorRef | Repaired structure. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"actor": "a1",
"amount": 30,
"complete": true,
"definition": "core:chest_structure",
"kind": "structure_repaired",
"player": "p1",
"position": {
"map": "m1",
"x_mm": 0,
"y_mm": 0,
"z_mm": 0
},
"target": "s1"
}