EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

PrefabAnchor

An effect anchor of a prefab: where smoke rises or light shines while enough of the cells in its box stand.

Signature

{ fire: (PrefabFire)?, id: Name, kind: AnchorKind, light: (AnchorLight)?, look: (FxId)?, max_mm: {Millimeters}, min_mm: {Millimeters}, part: (PrefabPart)?, position_mm: {Millimeters}, shaft: (PrefabShaft)?, smoke: (PrefabSmoke)?, threshold_permille: Permille, when: ({AnchorWhen})? }

Fields

NameTypeMeaning
firePrefabFireFire configuration, required for kind fire and absent for other kinds.
idNameLocal name, unique within the prefab.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
kindAnchorKindWhat the anchor emits.
lightAnchorLightColour and strength of a lamp's light (kind lamp only); absent: the world's lamp light.
lookFxIdEffect it plays in a loop at its position, required for kind fx and absent for other kinds.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: fx
max_mm{Millimeters}Upper corner of that box.
Items: 3…3; Unit: mm
min_mm{Millimeters}Lower corner of the box of cells the anchor depends on.
Items: 3…3; Unit: mm
partPrefabPartThe moving piece of a part anchor, required for kind part and absent for other kinds.
position_mm{Millimeters}Position relative to the origin.
Items: 3…3; Unit: mm
shaftPrefabShaftShaft configuration, required for kind shaft and absent for other kinds.
smokePrefabSmokeChimney puff dimensions and colour; only valid for chimney anchors.
threshold_permillePermilleShare of the box's sub-cells that must stand for the anchor to work.
Range: 0…1000; Unit: permille
when{AnchorWhen}Emit when any listed station or environment condition holds; absent means always.
Items: 1…5; Unique entries