mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Corrected comments on StateApi for PR
This commit is contained in:
parent
1d185e9bfe
commit
1cd8e5fb7e
1 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue