Raw schema
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "An existing tileset edit session, or an edit link containing ?s=<id>. Give kind with it to change a Wang set's preview; the other fields are for a new set."
},
"kind": {
"type": "string",
"enum": [
"wang",
"wall",
"iso",
"platformer"
],
"description": "wang (flat floor terrain), wall (Wang walls), iso (isometric Wang) or platformer. For a new set, default wang. With session_id, wang, wall or iso switches that Wang set's preview, keeping its tiles; a Wang set can't become a platformer set or the other way round."
},
"palette": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 256,
"description": "Hex colours for tiles or base."
},
"tiles": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"description": "The set's tiles in mask order (16 for Wang kinds, 49 for platformer), palette indexes, -1 transparent."
},
"base": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer"
}
},
"description": "A square seamless texture to derive a Wang set's 16 tiles from."
},
"png_base64": {
"type": "string",
"description": "A tileset PNG (a Wang set's 4x4 sheet or 16x1 strip, a platformer set's 7x7 sheet) or a square texture, base64."
},
"layout": {
"type": "string",
"enum": [
"sheet",
"strip",
"texture"
],
"description": "How to read png_base64: sheet (4x4 Wang sheet, or a platformer set's 7x7), strip (16x1) or texture (a square base texture the 16 Wang tiles are derived from). Default: guessed from the image (see the tool description)."
},
"size": {
"type": "integer",
"minimum": 4,
"maximum": 64,
"description": "Tile size for a blank set (default 32)."
},
"name": {
"type": "string",
"description": "The set's name."
}
},
"additionalProperties": false
}