EverambleGAME API / 1

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

NameTypeMeaning
actorActorRefActor that pushed it; absent for a reset.
Length: 1…256; Pattern: ^[\s\S]+$
definitionStructureIdIts structure definition.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure
fromPositionWhere it stood.
kind"structure_moved"Discriminant
playerPlayerRefPlayer controlling that actor; absent otherwise.
Length: 1…256; Pattern: ^[\s\S]+$
structureActorRefThe stone.
Length: 1…256; Pattern: ^[\s\S]+$
toPositionWhere 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
  }
}