using System; namespace StardewModdingAPI.Events { /// An attribute which specifies the priority for an event handler. [AttributeUsage(AttributeTargets.Method)] public class EventPriorityAttribute : Attribute { /********* ** Accessors *********/ /// The event handler priority, relative to other handlers across all mods registered for this event. internal EventPriority Priority { get; } /********* ** Public methods *********/ /// Construct an instance. /// The event handler priority, relative to other handlers across all mods registered for this event. Higher-priority handlers are notified before lower-priority handlers. public EventPriorityAttribute(EventPriority priority) { this.Priority = priority; } } }