EverambleGAME API / 1

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

NameTypeMeaning
definitionStructureIdStructure 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
sourceActorRefConfirmed origin of the damage; absent for environmental sources.
Length: 1…256; Pattern: ^[\s\S]+$
targetActorRefDestroyed structure.
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "definition": "core:wood_wall_structure",
  "kind": "structure_destroyed",
  "source": "a2",
  "target": "s1"
}