EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

place_structure

Story work: place a fixed structure without a room of its own at a spot of a map. It belongs to the binding's lasting owner and is taken back (with its terrain) once that ownership ends; a work of the same name of this package is replaced in the same commit. The footprint must be free of structures of any origin and of foreign cell changes; figures and ground items in it are moved aside.

Signature

{ at_mm: {Millimeters}, inside: (Name)?, kind: "place_structure", map: MapId, structure: StructureId, work: Name, yaw_mdeg: Millidegrees }

Fields

NameTypeMeaning
at_mm{Millimeters}Spot as x, z in millimetres, map-local (room-local with inside).
Items: 2…2
insideNamePlacement identifier of a structure with a room on the map; the spot is then relative to that room's centre. Absent: outdoors.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
kind"place_structure"Discriminant
mapMapIdMap of the spot (the start map).
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: map
structureStructureIdFixed structure without a room of its own.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure
workNameWork name, unique within this package's standing works.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
yaw_mdegMillidegreesRotation around the vertical axis.
Range: 0…359999; Unit: mdeg

Validated example

{
  "at_mm": [
    11000,
    2750
  ],
  "kind": "place_structure",
  "map": "core:valley",
  "structure": "core:woodpile_structure",
  "work": "market_stall",
  "yaw_mdeg": 90000
}