using System.Linq; using System.Collections.Generic; using Sirenix.OdinInspector; namespace Project.Store { public class StoreCustomListAdapter : StoreAdapter { protected bool ValidateIDs (List x) => x.All(id => StoreSO.Instance.ValidateID(id)); protected string[] AllSellableIDs () => StoreSO.Instance.AllSellableIDs(); [ValidateInput("ValidateIDs")] [ValueDropdown("AllSellableIDs", IsUniqueList = true)] public List sellableIDs = new List(); protected override List GetSellables() => sellableIDs.Select(id => StoreSO.Instance.GetSellable(id)).ToList(); } }