mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Made class internal as no public-facing side of the API exposes it
This commit is contained in:
1 parent
b94c1315c4
commit
177734e3eb
1 file changed
+8
-15
@@ -5,30 +5,23 @@ namespace MiraAPI.Events;
|
||||
/// <summary>
|
||||
/// Wrapper for <see cref="MiraEvent"/> handlers.
|
||||
/// </summary>
|
||||
public class MiraEventWrapper
|
||||
/// <param name="eventHandler">The action for the event handler.</param>
|
||||
/// <param name="priority">The priority of the handler.</param>
|
||||
/// <param name="type">The constructed event type.</param>
|
||||
internal class MiraEventWrapper(Delegate eventHandler, int priority, Type type)
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the event handler delegate.
|
||||
/// </summary>
|
||||
public Delegate EventHandler { get; }
|
||||
public Delegate EventHandler { get; } = eventHandler;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the priority of the handler. Lower values are called first.
|
||||
/// </summary>
|
||||
public int Priority { get; }
|
||||
|
||||
internal Type DefinedType { get; }
|
||||
public int Priority { get; } = priority;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MiraEventWrapper"/> class.
|
||||
/// Gets the <see cref="MiraEvent"/> type used to construct the <see cref="EventHandler"/>.
|
||||
/// </summary>
|
||||
/// <param name="eventHandler">The action for the event handler.</param>
|
||||
/// <param name="priority">The priority of the handler.</param>
|
||||
/// <param name="type">The constructed event type.</param>
|
||||
internal MiraEventWrapper(Delegate eventHandler, int priority, Type type)
|
||||
{
|
||||
EventHandler = eventHandler;
|
||||
Priority = priority;
|
||||
DefinedType = type;
|
||||
}
|
||||
public Type DefinedType { get; } = type;
|
||||
}
|
||||
Reference in new issue
Block a user