CONTENT CONTRACT · VERSION 1
structure_moved
A pushable stone moved one cell: pushed by a player, or returned home by a puzzle reset.
Signature
{ actor: (ActorRef)?, definition: StructureId, from: Position, kind: "structure_moved", player: (PlayerRef)?, structure: ActorRef, to: Position }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Actor that pushed it; absent for a reset. Length: 1…256; Pattern: ^[\s\S]+$ |
definition | StructureId | Its structure definition. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure |
from | Position | Where it stood. |
kind | "structure_moved" | Discriminant |
player | PlayerRef | Player controlling that actor; absent otherwise. Length: 1…256; Pattern: ^[\s\S]+$ |
structure | ActorRef | The stone. Length: 1…256; Pattern: ^[\s\S]+$ |
to | Position | Where it stands now. |
Validated example
{
"actor": "a1",
"definition": "core:bench_structure",
"from": {
"map": "m1",
"x_mm": 2000,
"y_mm": 0,
"z_mm": 4000
},
"kind": "structure_moved",
"player": "p1",
"structure": "s1",
"to": {
"map": "m1",
"x_mm": 4000,
"y_mm": 0,
"z_mm": 4000
}
}