mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-06-09 10:06:46 +02:00
5168b5f3d4
* 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
32 lines
866 B
C#
32 lines
866 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 partial class GasTileVisibleGasOverlaySystem : EntitySystem
|
|
{
|
|
[Dependency] private 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>();
|
|
}
|
|
|
|
}
|