using System.Collections; using System.Collections.Generic; using UnityEngine; using RPGCreationKit; using RPGCreationKit.SaveSystem; namespace RPGCreationKit.SaveSystem { [System.Serializable] public class LootingPointsDictionary : SerializableDictionary { } /// /// Represent a single looting point /// [System.Serializable] public class LootingPointSaveData { public string lootingID; public int ContainerLockLevel; public bool isLocked; public List allItems = new List(); public void RetrieveItemsFromDatabase() { for (int i = 0; i < allItems.Count; i++) allItems[i].item = ItemsDatabase.GetItem(allItems[i].externalItemID); } } /// /// Represent the collection of all looting points in the game /// [System.Serializable] public class LootingPointsData { [SerializeField] public LootingPointsDictionary allLootingPoints = new LootingPointsDictionary(); } }