mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-29 20:03:45 +01:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using Glamourer.Api.Enums;
|
|
using Glamourer.Designs.History;
|
|
using Glamourer.Interop.Structs;
|
|
using Glamourer.State;
|
|
using OtterGui.Classes;
|
|
|
|
namespace Glamourer.Events;
|
|
|
|
/// <summary>
|
|
/// Triggered when a Design is edited in any way.
|
|
/// <list type="number">
|
|
/// <item>Parameter is the type of the change </item>
|
|
/// <item>Parameter is the changed saved state. </item>
|
|
/// <item>Parameter is the existing actors using this saved state. </item>
|
|
/// <item>Parameter is any additional data depending on the type of change. </item>
|
|
/// </list>
|
|
/// </summary>
|
|
public sealed class StateChanged()
|
|
: EventWrapper<StateChangeType, StateSource, ActorState, ActorData, ITransaction?, StateChanged.Priority>(nameof(StateChanged))
|
|
{
|
|
public enum Priority
|
|
{
|
|
/// <seealso cref="Api.StateApi.OnStateChanged" />
|
|
GlamourerIpc = int.MinValue,
|
|
|
|
/// <seealso cref="Interop.Penumbra.PenumbraAutoRedraw.OnStateChanged" />
|
|
PenumbraAutoRedraw = 0,
|
|
|
|
/// <seealso cref="EditorHistory.OnStateChanged" />
|
|
EditorHistory = -1000,
|
|
}
|
|
}
|