Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

cms / cms sprite guillotine partition

An agent that imports a sprite packer result needs its recursive guillotine cuts checked against claimed leaf dimensions and sprite inventory.

POST https://detect.halowerk.com/v1/cms/cms-sprite-guillotine-partition

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        "height": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        "nodes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "axis": {
                "type": "string",
                "minLength": 0,
                "maxLength": 1
              },
              "cut": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "left": {
                "type": "integer",
                "minimum": -1,
                "maximum": 511
              },
              "right": {
                "type": "integer",
                "minimum": -1,
                "maximum": 511
              },
              "sprite": {
                "type": "integer",
                "minimum": -1,
                "maximum": 511
              },
              "width": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "height": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              }
            },
            "required": [
              "axis",
              "cut",
              "left",
              "right",
              "sprite",
              "width",
              "height"
            ],
            "additionalProperties": false
          },
          "maxItems": 512,
          "minItems": 1
        },
        "sprite_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 512
        }
      },
      "required": [
        "width",
        "height",
        "nodes",
        "sprite_count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "width": 2,
    "height": 2,
    "nodes": [
      {
        "axis": "L",
        "cut": 0,
        "left": -1,
        "right": -1,
        "sprite": 0,
        "width": 2,
        "height": 2
      }
    ],
    "sprite_count": 1
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →