{
  "titleId": "tcgrid-sample",
  "titleName": "TCGrid サンプル",
  "version": "1.5.0",
  "recommendedAppVersion": "1.1.0",
  "fields": [
    {
      "id": "keyword",
      "label": "キーワード",
      "type": "text",
      "searchable": true,
      "virtual": true,
      "quickSearch": true,
      "searchTargets": [
        "name",
        "cardNo",
        "text",
        "traits",
        "trigger"
      ]
    },
    {
      "id": "cardText",
      "label": "カードテキスト",
      "type": "text",
      "searchable": true,
      "virtual": true,
      "searchTargets": [
        "text",
        "trigger"
      ]
    },
    {
      "id": "cardNo",
      "label": "カードNo",
      "type": "text",
      "searchable": true,
      "required": true
    },
    {
      "id": "name",
      "label": "カード名",
      "type": "text",
      "searchable": true,
      "required": true
    },
    {
      "id": "type",
      "label": "種類",
      "type": "radio",
      "searchable": true,
      "required": true,
      "multiple": false,
      "options": [
        "リーダー",
        "キャラ",
        "イベント",
        "ステージ"
      ],
      "dynamicOptions": false
    },
    {
      "id": "attribute",
      "label": "色",
      "type": "checkbox",
      "searchable": true,
      "required": true,
      "multiple": true,
      "options": [
        "赤",
        "緑",
        "青",
        "紫",
        "黒",
        "黄"
      ],
      "dynamicOptions": false
    },
    {
      "id": "cost",
      "label": "コスト",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 10
    },
    {
      "id": "life",
      "label": "ライフ",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 6
    },
    {
      "id": "power",
      "label": "パワー",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 13000
    },
    {
      "id": "counter",
      "label": "カウンター",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 2000
    },
    {
      "id": "attackAttribute",
      "label": "属性",
      "type": "checkbox",
      "searchable": true,
      "multiple": true,
      "options": [
        "斬",
        "打",
        "射",
        "特",
        "知",
        "？"
      ],
      "dynamicOptions": false
    },
    {
      "id": "traits",
      "label": "特徴",
      "type": "modal_multi",
      "searchable": true,
      "multiple": true,
      "options": [
        "星読み",
        "風の旅団",
        "岩窟族",
        "機巧団",
        "森の民",
        "潮騒の民",
        "影渡り",
        "灯火の騎士",
        "雲海の商会",
        "氷原の民",
        "砂海の隊商",
        "歯車工房"
      ],
      "dynamicOptions": true
    },
    {
      "id": "rarity",
      "label": "レアリティ",
      "type": "radio",
      "searchable": true,
      "multiple": false,
      "options": [
        "L",
        "C",
        "UC",
        "R",
        "SR",
        "SEC",
        "P",
        "SP",
        "TR"
      ],
      "dynamicOptions": true
    },
    {
      "id": "block",
      "label": "ブロックアイコン",
      "type": "checkbox",
      "searchable": true,
      "multiple": false,
      "options": [
        "1",
        "2"
      ],
      "dynamicOptions": true
    },
    {
      "id": "series",
      "label": "収録",
      "type": "modal_multi",
      "searchable": true,
      "multiple": true,
      "options": [
        "サンプル第1弾【TS-01】",
        "サンプル第2弾【TS-02】"
      ],
      "dynamicOptions": true
    },
    {
      "id": "text",
      "label": "テキスト",
      "type": "text",
      "searchable": false
    },
    {
      "id": "trigger",
      "label": "トリガー",
      "type": "text",
      "searchable": false
    }
  ],
  "cardIdGeneration": {
    "type": "field",
    "fieldId": "cardNo"
  },
  "parallelCardSupport": {
    "enabled": true,
    "defaultShowParallel": true,
    "filterLabel": "パラレルカードを表示",
    "parallelLabel": "パラレル"
  },
  "deckRules": {
    "totalCards": {
      "min": 51,
      "max": 51
    },
    "maxCopiesPerCard": {
      "default": 4
    },
    "regulations": {
      "default": "standard",
      "items": [
        {
          "id": "standard",
          "label": "スタンダード",
          "cardExclude": {
            "block": [
              "1"
            ]
          }
        },
        {
          "id": "extra",
          "label": "エクストラ"
        }
      ]
    },
    "zones": [
      {
        "id": "leader",
        "label": "リーダー",
        "required": true,
        "cardCount": {
          "min": 1,
          "max": 1
        },
        "cardFilter": {
          "type": "リーダー"
        }
      },
      {
        "id": "deck",
        "label": "デッキ",
        "required": true,
        "cardCount": {
          "min": 50,
          "max": 50
        },
        "cardFilter": {
          "type": [
            "キャラ",
            "イベント",
            "ステージ"
          ]
        }
      }
    ],
    "deckBuildFlow": {
      "steps": [
        {
          "type": "select_leader",
          "zoneId": "leader",
          "required": true
        }
      ]
    },
    "deckNameTemplate": "{cardNo} {name}",
    "deckNameFields": [
      "cardNo",
      "name"
    ],
    "listDisplayZone": "leader",
    "mainZone": "deck",
    "limits": [
      {
        "type": "matchZone",
        "label": "リーダーの色",
        "fieldId": "attribute",
        "sourceZone": "leader",
        "zones": [
          "deck"
        ]
      }
    ],
    "deckSort": {
      "groupBy": [
        "type"
      ],
      "options": [
        {
          "id": "cost",
          "label": "コスト順",
          "by": [
            "cost",
            "cardNo"
          ]
        },
        {
          "id": "color",
          "label": "色順",
          "by": [
            "attribute",
            "cost",
            "cardNo"
          ]
        },
        {
          "id": "cardNo",
          "label": "カードNo順",
          "by": [
            "cardNo"
          ]
        }
      ],
      "default": {
        "optionId": "cost",
        "direction": "asc"
      }
    },
    "deckStats": {
      "zones": [
        "deck"
      ],
      "items": [
        {
          "fieldId": "type",
          "chart": "stack"
        },
        {
          "fieldId": "attribute",
          "chart": "stack"
        },
        {
          "fieldId": "cost",
          "chart": "columns"
        },
        {
          "fieldId": "counter",
          "chart": "stack",
          "missingLabel": "なし"
        },
        {
          "fieldId": "power",
          "chart": "columns"
        },
        {
          "fieldId": "attackAttribute",
          "chart": "stack"
        },
        {
          "fieldId": "traits",
          "chart": "rows",
          "limit": 5
        }
      ]
    }
  },
  "migrations": [],
  "matchRecord": {
    "opponent": { "label": "相手のリーダー", "cardFilter": { "type": "リーダー" } }
  },
  "dataSources": [
    {
      "name": "TCGrid サンプル",
      "provider": "TCGrid",
      "url": "https://tcgrid.jp/samples/tcgrid-sample/data.json",
      "description": "審査・動作確認用の架空のカードゲームのデータ（絵も自作）"
    }
  ],
  "defaultSettings": {
    "searchSort": [
      { "fieldId": "series", "order": "listed" },
      { "fieldId": "cardNo", "order": "asc" }
    ],
    "deckImageSheet": {
      "width": 1920,
      "height": 2560,
      "background": "#C8000B",
      "columns": 8,
      "hero": {
        "zoneId": "leader",
        "colSpan": 3,
        "rowSpan": 2
      },
      "panel": {
        "groups": [
          {
            "label": "種類",
            "items": [
              {
                "label": "キャラ",
                "match": {
                  "type": "キャラ"
                }
              },
              {
                "label": "イベント",
                "match": {
                  "type": "イベント"
                }
              },
              {
                "label": "ステージ",
                "match": {
                  "type": "ステージ"
                }
              }
            ]
          },
          {
            "label": "カウンター",
            "items": [
              {
                "label": "なし",
                "match": {
                  "counter": null
                }
              },
              {
                "label": "1000",
                "match": {
                  "counter": 1000
                }
              },
              {
                "label": "2000",
                "match": {
                  "counter": 2000
                }
              }
            ]
          }
        ]
      }
    },
    "theme": "auto",
    "language": "ja"
  }
}
