Schemas / Play

rig.play.health

v1.0.0 · stable maturity: draft 2 fields 0 required

Fields

FieldTypeMeaning
current float optional Optional. Remaining. Absent = maximum
maximum float optional Optional. Full. Absent = 1

Hit points. Format when present.

current is the value at load, including a save of a running scene. Damage rules stay in the host.

JSON Schema

Resolves at https://rig.works/schemas/rig.play.health.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.play.health.schema.json",
  "title": "rig.play.health",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "current": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "maximum": {
      "$ref": "./_defs.schema.json#/$defs/float"
    }
  },
  "x-rig-maturity": "draft"
}

Seen in

play-scene.json