Facebook
From Gentle Crow, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 57
  1. [System.Serializable]
  2. public class Tab
  3. {
  4.     [SerializeField] string tabName = "";
  5.     public List<ItemToSellTemplate> item;
  6.  
  7. }
  8.  
  9. [System.Serializable]
  10. public class ItemToSellTemplate
  11. {
  12.     [SerializeField] SlotType type;
  13.     [SerializeField] bool infiniteAmount;
  14.     [SerializeField] Rarity maxRarity;
  15.     [SerializeField] WeaponType weaponType;
  16.     [SerializeField] ConsumableBlueprint consumableBlueprint;
  17.     [SerializeField] ItemBlueprint blueprint;
  18.  
  19.     public ItemToSellTemplate()
  20.     {
  21.         type = SlotType.none;
  22.         infiniteAmount = false;
  23.         maxRarity = Rarity.normal;
  24.         weaponType = WeaponType.none;
  25.     }
  26. }
  27. [CreateAssetMenu(menuName = "Configs/Npc Config")]
  28. public class NPCConfig : ScriptableObject
  29. {
  30.     public List<Tab> tabs;
  31.    
  32. }