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
| Name | Type | Meaning |
|---|---|---|
fire | PrefabFire | Fire configuration, required for kind fire and absent for other kinds. |
id | Name | Local name, unique within the prefab. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
kind | AnchorKind | What the anchor emits. |
light | AnchorLight | Colour and strength of a lamp's light (kind lamp only); absent: the world's lamp light. |
look | FxId | Effect 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 |
part | PrefabPart | The 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 |
shaft | PrefabShaft | Shaft configuration, required for kind shaft and absent for other kinds. |
smoke | PrefabSmoke | Chimney puff dimensions and colour; only valid for chimney anchors. |
threshold_permille | Permille | Share 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 |