using PkmnLib.Static.Utils;

namespace PkmnLib.Dynamic.ScriptHandling.Registry;

/// <summary>
/// Attribute to mark a class as an item script.
/// </summary>
[AttributeUsage(AttributeTargets.Class), MeansImplicitUse]
public class ItemScriptAttribute : Attribute
{
    /// <summary>
    /// The name of the script.
    /// </summary>
    public StringKey Name { get; }

    /// <inheritdoc cref="ItemScriptAttribute"/>
    public ItemScriptAttribute(string name)
    {
        Name = name;
    }
}