32 lines
867 B
C#
32 lines
867 B
C#
using Content.Client.Atmos.Overlays;
|
|
using JetBrains.Annotations;
|
|
using Robust.Client.Graphics;
|
|
|
|
namespace Content.Client.Atmos.EntitySystems;
|
|
|
|
/// <summary>
|
|
/// System responsible for rendering visible atmos gasses (like plasma for example) using <see cref="GasTileVisibleGasOverlay"/>.
|
|
/// </summary>
|
|
[UsedImplicitly]
|
|
public sealed class GasTileVisibleGasOverlaySystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IOverlayManager _overlayMan = default!;
|
|
|
|
private GasTileVisibleGasOverlay _visibleGasOverlay = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
_visibleGasOverlay = new GasTileVisibleGasOverlay();
|
|
_overlayMan.AddOverlay(_visibleGasOverlay);
|
|
}
|
|
|
|
public override void Shutdown()
|
|
{
|
|
base.Shutdown();
|
|
_overlayMan.RemoveOverlay<GasTileVisibleGasOverlay>();
|
|
}
|
|
|
|
}
|