GS2-SkillTree マスターデータリファレンス
マスターデータのフォーマットと インポートする各種モデルのリファレンス
{
  "version": "2023-09-06",
  "nodeModels": [
    {
      "name": "[string]ノードモデル名",
      "metadata": "[string?]メタデータ",
      "releaseVerifyActions": [
        {
          "action": "[string]検証アクションで実行するアクションの種類",
          "request": "[string]リクエストのJSON"
        }
      ],
      "releaseConsumeActions": [
        {
          "action": "[string]消費アクションで実行するアクションの種類",
          "request": "[string]リクエストのJSON"
        }
      ],
      "returnAcquireActions": [
        {
          "action": "[string]入手アクションで実行するアクションの種類",
          "request": "[string]リクエストのJSON"
        }
      ],
      "restrainReturnRate": "[float]返却率",
      "premiseNodeNames": [
        "[string]ノードモデル名"
      ]
    }
  ]
}
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| version | ✓ | 2023-09-06 | マスターデータのフォーマットバージョン | |||
| nodeModels | List<NodeModel> | ~ 1000 items | ノードモデル | 
NodeModel
ノードモデル
ノードモデルはスキルツリーに配置するノードのモデルです。
ノードには解放に必要なコストと、ノードの解放状態を未解放状態に戻した時に返却されるコストの割合を設定できます。
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| nodeModelId | string | ✓ | ~ 1024文字 | ノードモデルGRN | ||
| name | string | ✓ | ~ 128文字 | ノードモデル名 | ||
| metadata | string | ~ 2048文字 | メタデータ | |||
| releaseVerifyActions | List<VerifyAction> | [] | 0 ~ 10 items | 解放に必要な条件を判定する検証アクションリスト | ||
| releaseConsumeActions | List<ConsumeAction> | ✓ | [] | 1 ~ 10 items | 解放に必要な消費アクションリスト | |
| returnAcquireActions | List<AcquireAction> | 0 ~ 10 items | 返却される入手アクションリスト | |||
| restrainReturnRate | float | ✓ | 1 | 0 ~ 1 | 返却率 | |
| premiseNodeNames | List<string> | [] | 0 ~ 10 items | 解放の前提とするノードモデル名リスト | 
ConsumeAction
消費アクション
VerifyAction
検証アクション
AcquireAction
入手アクション
VerifyActionResult
検証アクションの実行結果
ConsumeActionResult
消費アクションの実行結果
AcquireActionResult
入手アクションの実行結果
TransactionResult
トランザクション実行結果
サーバーサイドでのトランザクションの自動実行機能を利用して実行されたトランザクションの実行結果
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| transactionId | string | ✓ | 36 ~ 36文字 | トランザクションID | ||
| verifyResults | List<VerifyActionResult> | 0 ~ 10 items | 検証アクションの実行結果リスト | |||
| consumeResults | List<ConsumeActionResult> | [] | 0 ~ 10 items | 消費アクションの実行結果リスト | ||
| acquireResults | List<AcquireActionResult> | [] | 0 ~ 100 items | 入手アクションの実行結果リスト | ||
| hasError | bool | ✓ | false | トランザクション実行中にエラーが発生したかどうか |