EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

rig

A skeleton with its clip table and the clips of the engine's situations.

Signature

{ clips: {RigClip}, handling: (WorldDataId)?, id: ContentId, kind: "rig", plan: WorldDataId, roles: RigRoles, variant_clips: {VariantClips} }

Fields

NameTypeMeaning
clips{RigClip}Every clip of the rig, names unique.
Items: 1…1024
handlingWorldDataIdHow the body carries and works with hand items (holds, work flow); absent: it holds nothing.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:world_data
idContentIdPackage-qualified identity; unique within its declaring namespace. A clip's content ID is `<rig>/clip/<name>`.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
kind"rig"Discriminant
planWorldDataIdBody plan (bones, parts, sockets, variants) of the creature format.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:world_data
rolesRigRolesWhich clip plays in each engine situation.
variant_clips{VariantClips}Further variants of the plan kept up only for some clips (names, a trailing `*` matches a prefix); a variant without an entry is kept up for every clip.
Items: 0…16

Validated example

{
  "clips": [
    {
      "asset": "core:bat_clip_attack_baked",
      "impact": {
        "ms": 220,
        "source_hash": "f8c8065b1948b36f2ed6d8491f0a3a7f4cd12e0112ca5fe1885e9638ae9c7482"
      },
      "name": "attack",
      "prop_from_hand": false,
      "seated": false,
      "talking": false
    },
    {
      "asset": "core:bat_clip_death_baked",
      "name": "death",
      "prop_from_hand": false,
      "seated": false,
      "talking": false
    },
    {
      "asset": "core:bat_clip_fly_baked",
      "name": "fly",
      "prop_from_hand": false,
      "seated": false,
      "talking": false
    },
    {
      "asset": "core:bat_clip_hit_baked",
      "name": "hit",
      "prop_from_hand": false,
      "seated": false,
      "talking": false
    },
    {
      "asset": "core:bat_clip_windup_baked",
      "name": "windup",
      "prop_from_hand": false,
      "seated": false,
      "talking": false
    }
  ],
  "id": "core:bat_rig",
  "kind": "rig",
  "plan": "core:bat_body_plan",
  "roles": {
    "attack": "attack",
    "death": "death",
    "fly": "fly",
    "hit": "hit",
    "idle": "fly",
    "idle_variants": [],
    "resident_idle": [],
    "windup": "windup"
  },
  "variant_clips": []
}