Dalamud/Dalamud/Plugin/ActivePluginsChangedEventArgs.cs
Haselnussbomber 191dfb57e3
[API13] Fire ActivePluginsChanged after a plugin loaded/unloaded (#2334)
* Fire ActivePluginsChanged after a plugin loaded/unloaded

* Add ActivePluginsChangedEventArgs

* Use past tense
2025-08-03 18:28:44 -07:00

31 lines
1.1 KiB
C#

using System.Collections.Generic;
namespace Dalamud.Plugin;
/// <summary>
/// Contains data about changes to the list of active plugins.
/// </summary>
public class ActivePluginsChangedEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ActivePluginsChangedEventArgs"/> class
/// with the specified parameters.
/// </summary>
/// <param name="kind">The kind of change that triggered the event.</param>
/// <param name="affectedInternalNames">The internal names of the plugins affected by the change.</param>
internal ActivePluginsChangedEventArgs(PluginListInvalidationKind kind, IEnumerable<string> affectedInternalNames)
{
this.Kind = kind;
this.AffectedInternalNames = affectedInternalNames;
}
/// <summary>
/// Gets the invalidation kind that caused this event to be fired.
/// </summary>
public PluginListInvalidationKind Kind { get; }
/// <summary>
/// Gets the InternalNames of affected plugins.
/// </summary>
public IEnumerable<string> AffectedInternalNames { get; }
}