mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-30 12:23:41 +01:00
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using OtterGui.Classes;
|
|
using Penumbra.Collections;
|
|
using Penumbra.Mods;
|
|
using Penumbra.String.Classes;
|
|
|
|
namespace Penumbra.Communication;
|
|
|
|
/// <summary>
|
|
/// Triggered whenever a redirection in a mod collection cache is manipulated.
|
|
/// <list type="number">
|
|
/// <item>Parameter is collection with a changed cache. </item>
|
|
/// <item>Parameter is the type of change. </item>
|
|
/// <item>Parameter is the game path to be redirected or empty for FullRecompute. </item>
|
|
/// <item>Parameter is the new redirection path or empty for Removed or FullRecompute </item>
|
|
/// <item>Parameter is the old redirection path for Replaced, or empty. </item>
|
|
/// <item>Parameter is the mod responsible for the new redirection if any. </item>
|
|
/// </list> </summary>
|
|
public sealed class ResolvedFileChanged()
|
|
: EventWrapper<ModCollection, ResolvedFileChanged.Type, Utf8GamePath, FullPath, FullPath, IMod?, ResolvedFileChanged.Priority>(
|
|
nameof(ResolvedFileChanged))
|
|
{
|
|
public enum Type
|
|
{
|
|
Added,
|
|
Removed,
|
|
Replaced,
|
|
FullRecomputeStart,
|
|
FullRecomputeFinished,
|
|
}
|
|
|
|
public enum Priority
|
|
{
|
|
/// <seealso cref="Api.DalamudSubstitutionProvider.OnResolvedFileChange"/>
|
|
DalamudSubstitutionProvider = 0,
|
|
}
|
|
}
|