From 177734e3ebe2aa5a9b71eeb6ee287a831f13e28f Mon Sep 17 00:00:00 2001 From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com> Date: Fri, 6 Nov 2026 13:37:29 -0700 Subject: [PATCH] Made class internal as no public-facing side of the API exposes it --- MiraAPI/Events/MiraEventWrapper.cs | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/MiraAPI/Events/MiraEventWrapper.cs b/MiraAPI/Events/MiraEventWrapper.cs index 67fe96d6..09cce83a 100644 --- a/MiraAPI/Events/MiraEventWrapper.cs +++ b/MiraAPI/Events/MiraEventWrapper.cs @@ -5,30 +5,23 @@ namespace MiraAPI.Events; /// /// Wrapper for handlers. /// -public class MiraEventWrapper +/// The action for the event handler. +/// The priority of the handler. +/// The constructed event type. +internal class MiraEventWrapper(Delegate eventHandler, int priority, Type type) { /// /// Gets the event handler delegate. /// - public Delegate EventHandler { get; } + public Delegate EventHandler { get; } = eventHandler; /// /// Gets the priority of the handler. Lower values are called first. /// - public int Priority { get; } - - internal Type DefinedType { get; } + public int Priority { get; } = priority; /// - /// Initializes a new instance of the class. + /// Gets the type used to construct the . /// - /// The action for the event handler. - /// The priority of the handler. - /// The constructed event type. - internal MiraEventWrapper(Delegate eventHandler, int priority, Type type) - { - EventHandler = eventHandler; - Priority = priority; - DefinedType = type; - } + public Type DefinedType { get; } = type; }