Corrected comments on StateApi for PR

This commit is contained in:
Cordelia Mist 2025-01-19 09:35:10 -08:00
parent 1d185e9bfe
commit 1cd8e5fb7e

View file

@ -340,9 +340,7 @@ public sealed class StateApi : IGlamourerApiState, IApiService, IDisposable
private void OnStateChanged(StateChangeType type, StateSource _2, ActorState _3, ActorData actors, ITransaction? _5) private void OnStateChanged(StateChangeType type, StateSource _2, ActorState _3, ActorData actors, ITransaction? _5)
{ {
// Remove this comment before creating PR. // Glamourer.Log.Verbose($"[OnStateChanged] Sending out OnStateChanged with type {type}.");
Glamourer.Log.Verbose($"[OnStateChanged] Sending out OnStateChanged with type {type}.");
if (StateChanged != null) if (StateChanged != null)
foreach (var actor in actors.Objects) foreach (var actor in actors.Objects)
StateChanged.Invoke(actor.Address); StateChanged.Invoke(actor.Address);
@ -354,13 +352,9 @@ public sealed class StateApi : IGlamourerApiState, IApiService, IDisposable
private void OnStateUpdated(StateUpdateType type, ActorData actors) private void OnStateUpdated(StateUpdateType type, ActorData actors)
{ {
// Glamourer.Log.Verbose($"[OnStateUpdated] Sending out OnStateUpdated with type {type}.");
if (StateUpdated != null) if (StateUpdated != null)
foreach (var actor in actors.Objects) foreach (var actor in actors.Objects)
{
// Remove these before creating PR
Glamourer.Log.Information($"[ENDPOINT DEBUGGING] 0x{actor.Address:X} had update of type {type}.");
Glamourer.Log.Information("--------------------------------------------------------------");
StateUpdated.Invoke(actor.Address, type); StateUpdated.Invoke(actor.Address, type);
} }
} }
}