mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 11:40:52 +01:00
Removes a nearly 4 years old unused visualizer that had a hardcoded update method in the appearance system, for some reason.
34 lines
885 B
C#
34 lines
885 B
C#
using System.Collections.Generic;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Robust.Client.GameObjects
|
|
{
|
|
[UsedImplicitly]
|
|
internal sealed class AppearanceSystem : EntitySystem
|
|
{
|
|
private readonly Queue<AppearanceComponent> _queuedUpdates = new();
|
|
|
|
public void EnqueueUpdate(AppearanceComponent component)
|
|
{
|
|
_queuedUpdates.Enqueue(component);
|
|
}
|
|
|
|
public override void FrameUpdate(float frameTime)
|
|
{
|
|
while (_queuedUpdates.TryDequeue(out var appearance))
|
|
{
|
|
if (appearance.Deleted)
|
|
return;
|
|
|
|
foreach (var visualizer in appearance.Visualizers)
|
|
{
|
|
visualizer.OnChangeData(appearance);
|
|
}
|
|
|
|
appearance.UnmarkDirty();
|
|
}
|
|
}
|
|
}
|
|
}
|