Skip to content
HALOWERK

Gamingwerk

game turn resource state replay

Replay atomic game costs and gains against supplied resource balances.

POST https://gaming.halowerk.com/v1/game-turn-resource-state-replay

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
initialReferenceYes
actionsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "initial": {
      "$ref": "#/$defs/s0"
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/$defs/s2"
          },
          "costs": {
            "$ref": "#/$defs/s0"
          },
          "gains": {
            "$ref": "#/$defs/s0"
          }
        },
        "required": [
          "id",
          "costs",
          "gains"
        ],
        "additionalProperties": false
      },
      "maxItems": 200,
      "minItems": 0
    }
  },
  "required": [
    "initial",
    "actions"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w5:G5:input",
  "$defs": {
    "s0": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/s1"
      },
      "maxProperties": 100,
      "propertyNames": {
        "$ref": "#/$defs/s2"
      }
    },
    "s1": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    },
    "s2": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1
    }
  }
}

Open original schema

Published input example

{
  "initial": {
    "wood": 2
  },
  "actions": [
    {
      "id": "craft",
      "costs": {
        "wood": 3
      },
      "gains": {
        "plank": 1
      }
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’