コンテンツデータ設計
キャラクター、敵、アイテムを増やしやすくするため、ID付きのデータとして管理します。
キャラクターデータ
{
"id": "CH-001",
"name": "りんく",
"type": "player",
"status": "confirmed",
"sprite": "characters/link.png",
"dialogueId": null
}
モンスターデータ
{
"id": "BO-001",
"name": "ばくだんネズミ",
"type": "boss",
"maxHp": 5,
"attackType": "throw_bomb",
"drops": ["IT-W005", "IT-T002"],
"status": "draft"
}
アイテムデータ
{
"id": "IT-F002",
"name": "ハンバーガー",
"category": "food",
"consumable": true,
"maxStack": 9,
"heal": 2,
"questUsages": ["QUEST-LOST-CHILD"],
"status": "draft"
}
イベントデータ
{
"id": "EV-001",
"name": "お父さんを探す",
"conditions": [],
"steps": [
"WAKE_UP",
"FIND_FOOD",
"COOK_BURGERS",
"HELP_LOST_CHILD",
"FIND_FATHER",
"DEFEAT_FIRST_BOSS",
"RETURN_TREASURE"
]
}
状態の値
| 値 | 意味 |
|---|---|
| confirmed | 確定 |
| draft | 案 |
| undecided | 未決定 |
| needs-review | 読み取り確認が必要 |