using JetBrains.Annotations; using PkmnLib.Static.Utils; namespace PkmnLib.Dynamic.ScriptHandling.Registry; /// /// Helper attribute to register scripts through reflection. /// [AttributeUsage(AttributeTargets.Class)] [MeansImplicitUse] public class ScriptAttribute : Attribute { /// /// The category of the script it should be registered in. /// public ScriptCategory Category { get; } /// /// The name of the script. /// public StringKey Name { get; } /// public ScriptAttribute(ScriptCategory category, string name) { Category = category; Name = name; } }