Files
game-code-4/data/schema/hall_palettes.schema.json

64 lines
3.6 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "hall_palettes.schema.json",
"title": "hall_palettes 表 schema v0(per-hall 色板行,架构 §5.3 + Balance Bible v1.0 §6 色板列)",
"description": "架构 §3.2 CSV 规范落盘。一行 = 一殿:水墨四色(墨/骨白/朱砂/靛)+ 该殿色温 accent + 流向向量 + LUT 索引 + 四色面积纪律百分比。hex 为工程起始值,W5 look-dev 冻结评审按截图直方图校准(架构 §10.1 评审清单 #1)。lut_generator.tres 消费本表。",
"x-supported-keywords": [
"type", "properties", "required", "items", "enum", "pattern",
"minimum", "maximum", "minLength", "minItems", "maxItems",
"additionalProperties", "const"
],
"x-unique": ["id", "hall_id", "lut_index"],
"type": "object",
"required": ["sheet", "schema_version", "columns", "rows"],
"properties": {
"sheet": { "const": "hall_palettes" },
"schema_version": { "const": 0 },
"columns": {
"type": "array",
"items": { "type": "string" },
"minItems": 15
},
"rows": {
"type": "array",
"minItems": 10,
"maxItems": 10,
"items": {
"type": "object",
"required": [
"id", "hall_id", "name_cn", "ink_hex", "bone_hex", "cinnabar_hex",
"indigo_hex", "accent_hex", "accent_name_cn", "flow", "lut_index",
"ink_pct", "bone_pct", "cinnabar_max_pct", "indigo_max_pct"
],
"properties": {
"id": { "type": "string", "pattern": "^pal_hall_[0-9]{2}$" },
"hall_id": {
"type": "string",
"pattern": "^hall_[0-9]{2}_[a-z]+$",
"description": "halls.csv 行 ID(每殿恰一行)"
},
"name_cn": { "type": "string", "minLength": 1, "description": "色板行名([B§6]:冷靛/冰青/暗红/锈橙/玄黑/铅灰/烬红/墨绿/黛紫/骨白+金)" },
"ink_hex": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$", "description": "墨(默认 #1A1A1A,架构 §7.3 管线规格)" },
"bone_hex": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$", "description": "骨白(纸底)" },
"cinnabar_hex": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$", "description": "朱砂(强调,面积 ≤8%)" },
"indigo_hex": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$", "description": "靛(次强调,面积 ≤7%;阴德方印编码用)" },
"accent_hex": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$", "description": "该殿色温 accent(工程起始值,W5 校准)" },
"accent_name_cn": { "type": "string", "minLength": 1 },
"flow": {
"type": "string",
"enum": ["seep_down", "bleed_left"],
"description": "纸纹流向向量:自上而下渗 vs 向左横溢洇(架构 §5.3;工程起始值,W5 校准)"
},
"lut_index": { "type": "integer", "minimum": 1, "maximum": 10, "description": "LUT 索引(assets/luts/hall_XX.png)" },
"ink_pct": { "type": "integer", "minimum": 0, "maximum": 100, "description": "墨面积目标%([B] 65)" },
"bone_pct": { "type": "integer", "minimum": 0, "maximum": 100, "description": "骨白面积目标%([B] 25)" },
"cinnabar_max_pct": { "type": "integer", "minimum": 0, "maximum": 100, "description": "朱砂面积硬顶([B] ≤8)" },
"indigo_max_pct": { "type": "integer", "minimum": 0, "maximum": 100, "description": "靛面积硬顶([B] ≤7)" }
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}