mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System;
|
|
using OtterGui.Classes;
|
|
using Penumbra.Mods;
|
|
|
|
namespace Penumbra.Communication;
|
|
|
|
/// <summary>
|
|
/// Triggered whenever a temporary mod for all collections is changed.
|
|
/// <list type="number">
|
|
/// <item>Parameter added, deleted or edited temporary mod.</item>
|
|
/// <item>Parameter is whether the mod was newly created.</item>
|
|
/// <item>Parameter is whether the mod was deleted.</item>
|
|
/// </list> </summary>
|
|
public sealed class TemporaryGlobalModChange : EventWrapper<Action<TemporaryMod, bool, bool>, TemporaryGlobalModChange.Priority>
|
|
{
|
|
public enum Priority
|
|
{
|
|
/// <seealso cref="Collections.Cache.CollectionCacheManager.OnGlobalModChange"/>
|
|
CollectionCacheManager = 0,
|
|
|
|
/// <seealso cref="Collections.Manager.TempCollectionManager.OnGlobalModChange"/>
|
|
TempCollectionManager = 0,
|
|
}
|
|
|
|
public TemporaryGlobalModChange()
|
|
: base(nameof(TemporaryGlobalModChange))
|
|
{ }
|
|
|
|
public void Invoke(TemporaryMod temporaryMod, bool newlyCreated, bool deleted)
|
|
=> Invoke(this, temporaryMod, newlyCreated, deleted);
|
|
}
|