diff --git a/MiraAPI/Events/MiraEventWrapper.cs b/MiraAPI/Events/MiraEventWrapper.cs new file mode 100644 index 00000000..469a98d3 --- /dev/null +++ b/MiraAPI/Events/MiraEventWrapper.cs @@ -0,0 +1,21 @@ +using System; + +namespace MiraAPI.Events; + +/// +/// Wrapper for handlers. +/// +/// The action for the event handler. +/// The priority of the handler. +public class MiraEventWrapper(Delegate eventHandler, int priority) +{ + /// + /// Gets the event handler delegate. + /// + public Delegate EventHandler => eventHandler; + + /// + /// Gets the priority of the handler. Lower values are called first. + /// + public int Priority => priority; +}