mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
34 lines
900 B
C#
34 lines
900 B
C#
using Content.Client.Atmos.Overlays;
|
|
using Content.Shared.Inventory.Events;
|
|
using Content.Shared.Overlays;
|
|
using Robust.Client.Graphics;
|
|
|
|
namespace Content.Client.Overlays;
|
|
|
|
public sealed partial class ThermalSightOverlaySystem : EquipmentHudSystem<ThermalSightComponent>
|
|
{
|
|
[Dependency] private IOverlayManager _overlayMan = default!;
|
|
|
|
private GasTileDangerousTemperatureOverlay _temperatureOverlay = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
_temperatureOverlay = new();
|
|
}
|
|
|
|
protected override void UpdateInternal(RefreshEquipmentHudEvent<ThermalSightComponent> component)
|
|
{
|
|
base.UpdateInternal(component);
|
|
|
|
_overlayMan.AddOverlay(_temperatureOverlay);
|
|
}
|
|
|
|
protected override void DeactivateInternal()
|
|
{
|
|
base.DeactivateInternal();
|
|
|
|
_overlayMan.RemoveOverlay(_temperatureOverlay);
|
|
}
|
|
}
|