Include argument data in event information.

This commit is contained in:
MidoriKami 2023-09-21 15:26:08 -07:00
parent dc54f040b9
commit 0636a03e41
14 changed files with 209 additions and 45 deletions

View file

@ -14,8 +14,8 @@ public interface IAddonLifecycle
/// Delegate for receiving addon lifecycle event messages.
/// </summary>
/// <param name="eventType">The event type that triggered the message.</param>
/// <param name="addonInfo">Information about what addon triggered the message.</param>
public delegate void AddonEventDelegate(AddonEvent eventType, AddonArgs addonInfo);
/// <param name="args">Information about what addon triggered the message.</param>
public delegate void AddonEventDelegate(AddonEvent eventType, IAddonArgs args);
/// <summary>
/// Register a listener that will trigger on the specified event and any of the specified addons.