データ設計¶
設計原則¶
- 定義(DataTable/DataAsset)= 不変のマスターデータ
- インスタンス(コンポーネント上のStruct)= 可変の実行時データ
- この2つを厳格に分離する
主要Enum¶
| Enum | 値 |
|---|---|
| EWeaponType | Sword, DualBlade, GreatAxe, Bow, Staff, Shield, Spear, Scythe, Fist |
| EEquipmentSlot | Weapon, OffHand, Head, Body, Arms, Legs, Accessory1, Accessory2 |
| ESpellElement | Fire, Ice, Thunder, Wind, Earth, Water, Light, Dark, Void |
| ESpellForm | Projectile, Beam, Lance, Wave, Wall, Chain, Area, Summon |
| EContactBehavior | Explode, Pierce, Split, Reflect, Vanish, Attach, AreaChange |
主要DataTable¶
| DataTable | 行構造体 | 用途 |
|---|---|---|
| DT_WeaponDefinitions | FWeaponDefinition | 武器の基礎定義 |
| DT_ArmorDefinitions | FArmorDefinition | 防具の基礎定義 |
| DT_SpellRecipes | FSpellRecipe | 魔法レシピ(10要素→結果) |
| DT_EnemyDefinitions | FEnemyDefinition | 敵種の定義 |
| DT_ItemDefinitions | FItemDefinition | アイテム定義 |
| DT_ComboDefinitions | FComboDefinition | コンボモーション定義 |