Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Item Inventory Design Polymorphic Hierarchy

ErikOverflow edited this page Mar 26, 2019 · 1 revision

Scriptable Objects:

  1. Item : ScriptableObject
    • public virtual void Use()
    • Sprite sprite
    1. Equipment: Item
      1. Weapon : Equipment
        1. WeaponRanged : Weapon
        2. WeaponMelee : Weapon
      2. Armor : Equipment
        1. ArmorChest : Armor
        2. ArmorLegs : Armor
    2. Consumable : Item
      1. Potion : Consumable
      2. Buff : Consumable

(Serializable)

  1. ItemInstance
    • Item item
    1. EquipmentInstance
      • Level
      • Experience
    2. ConsumableInstance
      • Count
Clone this wiki locally