{
  "schemaVersion": 20,
  "operationSchemaVersion": 4,
  "version": 1,
  "name": "通知と全員確認",
  "metadata": {
    "description": "通知のみは即進行。確認待ちは対象全員の1回押下で進行。途中退出も未確認で待機します。",
    "minPlayers": 2,
    "maxPlayers": 4,
    "genres": [
      "その他"
    ],
    "durationRange": "10-30"
  },
  "tabs": [
    {
      "id": "main",
      "name": "共有盤面",
      "type": "standard",
      "hidden": false
    }
  ],
  "background": {
    "color": "#edf6ff",
    "size": "landscape",
    "grid": false
  },
  "items": [],
  "settings": {
    "globalVariables": [
      {
        "id": "completed",
        "name": "後続の実行回数",
        "type": "number",
        "defaultValue": 0
      }
    ],
    "actionButtons": [
      {
        "id": "notify-only",
        "name": "通知のみ",
        "phaseId": "start",
        "actions": [
          {
            "id": "notice",
            "type": "notice",
            "target": "actor",
            "playerTarget": {
              "kind": "actor"
            },
            "amount": {
              "kind": "number",
              "value": 1
            },
            "notice": {
              "mode": "notify",
              "title": "進行のお知らせ",
              "buttonLabel": "閉じる"
            },
            "messageParts": [
              {
                "kind": "player-name",
                "players": {
                  "kind": "actor"
                }
              },
              {
                "kind": "text",
                "text": "さん、通知を閉じる前に後続処理へ進みます。"
              }
            ]
          },
          {
            "id": "count-notice",
            "type": "variable",
            "target": "actor",
            "source": "global:completed",
            "mode": "add",
            "amount": {
              "kind": "number",
              "value": 1
            }
          }
        ]
      },
      {
        "id": "confirm-all",
        "name": "全員の確認を待つ",
        "phaseId": "start",
        "actions": [
          {
            "id": "confirmation",
            "type": "notice",
            "target": "all",
            "playerTarget": {
              "kind": "all"
            },
            "amount": {
              "kind": "number",
              "value": 1
            },
            "notice": {
              "mode": "acknowledge",
              "title": "次の進行を確認",
              "buttonLabel": "確認しました"
            },
            "messageParts": [
              {
                "kind": "text",
                "text": "全員が確認したら次へ進みます。現在の後続実行回数："
              },
              {
                "kind": "value",
                "value": {
                  "kind": "global-variable",
                  "variableId": "completed"
                }
              }
            ]
          },
          {
            "id": "count-confirmation",
            "type": "variable",
            "target": "actor",
            "source": "global:completed",
            "mode": "add",
            "amount": {
              "kind": "number",
              "value": 1
            }
          }
        ]
      }
    ]
  }
}
