From bc6debb4c042cb7cc8700579f3ca4b0fcd0fcb83 Mon Sep 17 00:00:00 2001
From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com>
Date: Tue, 3 Nov 2026 18:08:15 -0700
Subject: [PATCH] Made MiraEventWrapper constructor internal
---
MiraAPI/Events/MiraEventWrapper.cs | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/MiraAPI/Events/MiraEventWrapper.cs b/MiraAPI/Events/MiraEventWrapper.cs
index 2a2c410a..9568d295 100644
--- a/MiraAPI/Events/MiraEventWrapper.cs
+++ b/MiraAPI/Events/MiraEventWrapper.cs
@@ -5,17 +5,26 @@ namespace MiraAPI.Events;
///
/// Wrapper for handlers.
///
-/// The action for the event handler.
-/// The priority of the handler.
-public class MiraEventWrapper(Delegate eventHandler, int priority)
+public class MiraEventWrapper
{
///
/// Gets the event handler delegate.
///
- public Delegate EventHandler { get; } = eventHandler;
+ public Delegate EventHandler { get; }
///
/// Gets the priority of the handler. Lower values are called first.
///
- public int Priority { get; } = priority;
+ public int Priority { get; }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The action for the event handler.
+ /// The priority of the handler.
+ internal MiraEventWrapper(Delegate eventHandler, int priority)
+ {
+ EventHandler = eventHandler;
+ Priority = priority;
+ }
}