mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-25 14:11:47 +01:00
Apply API renames.
This commit is contained in:
parent
748c324acf
commit
7be283ca30
7 changed files with 16 additions and 16 deletions
|
|
@ -52,7 +52,7 @@ public sealed class IpcProviders : IDisposable, IApiService
|
|||
IpcSubscribers.RevertToAutomationName.Provider(pi, api.State),
|
||||
IpcSubscribers.StateChanged.Provider(pi, api.State),
|
||||
IpcSubscribers.StateChangedWithType.Provider(pi, api.State),
|
||||
IpcSubscribers.StateUpdated.Provider(pi, api.State),
|
||||
IpcSubscribers.StateFinalized.Provider(pi, api.State),
|
||||
IpcSubscribers.GPoseChanged.Provider(pi, api.State),
|
||||
];
|
||||
_initializedProvider.Invoke();
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ public sealed class StateApi : IGlamourerApiState, IApiService, IDisposable
|
|||
|
||||
public event Action<nint>? StateChanged;
|
||||
public event Action<IntPtr, StateChangeType>? StateChangedWithType;
|
||||
public event Action<IntPtr, StateUpdateType>? StateUpdated;
|
||||
public event Action<IntPtr, StateFinalizationType>? StateFinalized;
|
||||
public event Action<bool>? GPoseChanged;
|
||||
|
||||
private void ApplyDesign(ActorState state, DesignBase design, uint key, ApplyFlag flags)
|
||||
|
|
@ -349,11 +349,11 @@ public sealed class StateApi : IGlamourerApiState, IApiService, IDisposable
|
|||
StateChangedWithType.Invoke(actor.Address, type);
|
||||
}
|
||||
|
||||
private void OnStateUpdated(StateUpdateType type, ActorData actors)
|
||||
private void OnStateUpdated(StateFinalizationType type, ActorData actors)
|
||||
{
|
||||
Glamourer.Log.Verbose($"[OnStateUpdated] State Updated with Type {type}. [Affecting {actors.ToLazyString("nothing")}.]");
|
||||
if (StateUpdated != null)
|
||||
if (StateFinalized != null)
|
||||
foreach (var actor in actors.Objects)
|
||||
StateUpdated.Invoke(actor.Address, type);
|
||||
StateFinalized.Invoke(actor.Address, type);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue