mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-06-09 10:06:46 +02:00
d5ed6aa462
* yeah * split2 * well * cleanup * docs fix * Dependency cleanup * Update Content.Client/Atmos/EntitySystems/GasTileFireOverlaySystem.cs Co-authored-by: Pok <113675512+Pok27@users.noreply.github.com> * Update Content.Client/Atmos/Overlays/GasTileVisibleGasOverlay.cs Co-authored-by: Pok <113675512+Pok27@users.noreply.github.com> * Update Content.Client/Atmos/Overlays/GasTileVisibleGasOverlay.cs Co-authored-by: Pok <113675512+Pok27@users.noreply.github.com> * yup * modifying a lot anyways * other cleanup --------- Co-authored-by: Pok <113675512+Pok27@users.noreply.github.com> Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
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>();
|
|
}
|
|
|
|
}
|