EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

prefab

A native source asset with collision dimensions and seat offsets.

Signature

{ anchors: {PrefabAnchor}, asset: PrefabAssetId, climbable: boolean, collision: PrefabCollision, door: (Door)?, footprint: (Footprint)?, id: ContentId, interior: (Interior)?, kind: "prefab", never_dissolve: (boolean)?, placement: (PrefabPlacement)?, plinth_mm: (PositiveDistance)?, seats: {Seat}, sign: (PrefabSign)?, swatches: ({PrefabSwatch})? }

Fields

NameTypeMeaning
anchors{PrefabAnchor}Effect anchors: chimney smoke, lamp light and optional voxel fire.
Items: 0…64
assetPrefabAssetIdDeclared prefab-source asset that supplies geometry.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:prefab_source
climbablebooleanIts top carries a body: climbed by a jump, walked onto when low (false for room shells).
collisionPrefabCollisionHow bodies collide with it: a cylinder, its voxels, or not at all.
doorDoorIts door: where one enters.
footprintFootprintAuthored footprint of a building: width across, depth along its facing, height; placement, ground sampling and wall joints use it.
idContentIdPackage-qualified identity; unique within its declaring namespace.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
interiorInteriorThe room inside: its size and the prefabs of its shell.
kind"prefab"Discriminant
never_dissolvebooleanA story object that stays whole in cutscene and conversation shots: the renderer never dissolves it, even when it stands between the camera and a figure; absent: false.
placementPrefabPlacementHow players place it; absent: not placeable by players.
plinth_mmPositiveDistanceDepth of a plinth under the outline of the lowest layer: its cells reach this far down in the same look, so a building on uneven ground meets the lower ground instead of floating; absent: none.
Range: 1…2147483647; Unit: mm
seats{Seat}Seat positions and orientations relative to the prefab origin (seats and beds).
Items: 0…4096; Unique entries
signPrefabSignPlayers name it (a signpost): Interact opens the name field, the name floats over its label point; absent: only buildings take names.
swatches{PrefabSwatch}Colour variants of the prefab: every standing structure shows one, picked from its identity; absent: the asset's colours only.
Items: 1…16

Validated example

{
  "anchors": [],
  "asset": "core:barrel_stack_model",
  "climbable": true,
  "collision": {
    "kind": "voxels"
  },
  "id": "core:barrel_stack_prefab",
  "kind": "prefab",
  "placement": {
    "category": "furniture",
    "clearance_mm": 1050,
    "surface": "land"
  },
  "seats": []
}