using System.Collections.Generic; using UnityEngine; namespace YachtDice.Modifiers.Definition { [CreateAssetMenu(fileName = "ModifierCatalog", menuName = "YachtDice/Modifiers/Catalog")] public class ModifierCatalog : ScriptableObject { [SerializeField] private List modifiers = new(); public IReadOnlyList All => modifiers; public ModifierDefinition FindById(string id) { foreach (var t in modifiers) { if (t != null && t.Id == id) return t; } return null; } } }