Remove some obsolete AppearanceComponent method usages (#13726)

This commit is contained in:
Visne
2023-02-02 17:34:53 +01:00
committed by GitHub
parent 23b90de34d
commit 5a5a3afbb1
111 changed files with 428 additions and 349 deletions

View File

@@ -27,6 +27,7 @@ namespace Content.Server.Power.EntitySystems
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly ToolSystem _toolSystem = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
private const float ScrewTime = 2f;
@@ -114,7 +115,7 @@ namespace Content.Server.Power.EntitySystems
if (appearance != null)
{
appearance.SetData(ApcVisuals.ChargeState, newState);
_appearance.SetData(uid, ApcVisuals.ChargeState, newState, appearance);
}
}
@@ -231,7 +232,7 @@ namespace Content.Server.Power.EntitySystems
if (!Resolve(uid, ref appearance, ref apc, false))
return;
appearance.SetData(ApcVisuals.PanelState, GetPanelState(apc));
_appearance.SetData(uid, ApcVisuals.PanelState, GetPanelState(apc), appearance);
}
private sealed class ApcToolFinishedEvent : EntityEventArgs