[Fix] Name & add meta

This commit is contained in:
2026-03-01 16:23:41 +07:00
parent 3c50415111
commit 85d639aa70
36 changed files with 98 additions and 98 deletions
@@ -0,0 +1,23 @@
using System.Collections.Generic;
using UnityEngine;
namespace YachtDice.Modifiers.Definition
{
[CreateAssetMenu(fileName = "ModifierCatalog", menuName = "YachtDice/Modifiers/Catalog")]
public class ModifierCatalog : ScriptableObject
{
[SerializeField] private List<ModifierDefinition> modifiers = new();
public IReadOnlyList<ModifierDefinition> All => modifiers;
public ModifierDefinition FindById(string id)
{
for (int i = 0; i < modifiers.Count; i++)
{
if (modifiers[i] != null && modifiers[i].Id == id)
return modifiers[i];
}
return null;
}
}
}