Code commit

This commit is contained in:
RisaDev
2024-01-06 01:21:41 +03:00
parent a7d7297c59
commit a486dd2c96
90 changed files with 11576 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
using CustomizePlus.Profiles.Data;
using OtterGui.Classes;
using System;
namespace CustomizePlus.Profiles.Events;
/// <summary>
/// Triggered when profile is changed
/// </summary>
public sealed class ProfileChanged() : EventWrapper<ProfileChanged.Type, Profile?, object?, ProfileChanged.Priority>(nameof(ProfileChanged))
{
public enum Type
{
Created,
Deleted,
Renamed,
Toggled,
ChangedCharacterName,
AddedTemplate,
RemovedTemplate,
MovedTemplate,
ChangedTemplate,
ReloadedAll,
WriteProtection,
LimitLookupToOwnedChanged,
ChangedDefaultProfile,
TemporaryProfileAdded,
TemporaryProfileDeleted,
/*
ToggledProfile,
AddedTemplate,
RemovedTemplate,
MovedTemplate,
ChangedTemplate*/
}
public enum Priority
{
ProfileFileSystemSelector = -2,
TemplateFileSystemSelector = -1,
ProfileFileSystem,
ArmatureManager,
TemplateManager,
CustomizePlusIpc
}
}