From 4a48eef0d4f94ff7a80cde1e83e8e6f9bc43249f Mon Sep 17 00:00:00 2001 From: Arne Kiesewetter Date: Fri, 12 Apr 2024 00:44:55 +0200 Subject: [PATCH] Rename event args -> event data --- MonkeyLoader/Events/IEvent.cs | 4 ++-- MonkeyLoader/Events/IEventHandler.cs | 14 +++++++------- MonkeyLoader/Events/IEventSource.cs | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/MonkeyLoader/Events/IEvent.cs b/MonkeyLoader/Events/IEvent.cs index 2f12549..49ea147 100644 --- a/MonkeyLoader/Events/IEvent.cs +++ b/MonkeyLoader/Events/IEvent.cs @@ -7,7 +7,7 @@ namespace MonkeyLoader.Events { /// - /// Defines the interface for cancelable events with a + /// Defines the interface for cancelable event data with a /// target object that's the focus of the event. /// /// @@ -24,7 +24,7 @@ public interface ICancelableEvent : IEvent } /// - /// Defines the interface for events with a + /// Defines the interface for event data with a /// target object that's the focus of the event. /// /// The type of the target object that is the focus of the event. diff --git a/MonkeyLoader/Events/IEventHandler.cs b/MonkeyLoader/Events/IEventHandler.cs index 78407f6..0cd0ef8 100644 --- a/MonkeyLoader/Events/IEventHandler.cs +++ b/MonkeyLoader/Events/IEventHandler.cs @@ -21,15 +21,15 @@ public interface ICancelableEventHandler : IPrioritizabl public bool SkipCanceled { get; } /// - /// Handles the given cancelable event. + /// Handles the given cancelable event based on its data. /// /// - /// When this method sets .Canceled + /// When this method sets .Canceled /// = true, the default action should be prevented from happening and further /// event handlers may be skipped. /// - /// An object containing all the relevant information for the event. - public void Handle(TEvent eventArgs); + /// An object containing all the relevant information for the event. + public void Handle(TEvent eventData); } /// @@ -41,9 +41,9 @@ public interface IEventHandler : IPrioritizable where TEvent : IEvent { /// - /// Handles the given event. + /// Handles the given event based on its data. /// - /// An object containing all the relevant information for the event. - public void Handle(TEvent eventArgs); + /// An object containing all the relevant information for the event. + public void Handle(TEvent eventData); } } \ No newline at end of file diff --git a/MonkeyLoader/Events/IEventSource.cs b/MonkeyLoader/Events/IEventSource.cs index 379094d..41e75ca 100644 --- a/MonkeyLoader/Events/IEventSource.cs +++ b/MonkeyLoader/Events/IEventSource.cs @@ -11,8 +11,8 @@ namespace MonkeyLoader.Events /// /// The type representing the event arguments. /// The type of the target objects that are the focus of the events. - /// An object containing all the relevant information for the events, including canceling the action. - public delegate void CancelableEventDispatching(TEvent eventArgs) + /// An object containing all the relevant information for the events, including canceling the action. + public delegate void CancelableEventDispatching(TEvent eventData) where TEvent : class, ICancelableEvent; /// @@ -20,8 +20,8 @@ public delegate void CancelableEventDispatching(TEvent ev /// /// The type representing the event arguments. /// The type of the target objects that are the focus of the events. - /// An object containing all the relevant information for the events. - public delegate void EventDispatching(TEvent eventArgs) + /// An object containing all the relevant information for the events. + public delegate void EventDispatching(TEvent eventData) where TEvent : class, IEvent; ///