mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-06-09 13:26:34 +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
31 lines
788 B
C#
31 lines
788 B
C#
using Content.Client.Atmos.Overlays;
|
|
using JetBrains.Annotations;
|
|
using Robust.Client.Graphics;
|
|
|
|
namespace Content.Client.Atmos.EntitySystems;
|
|
|
|
/// <summary>
|
|
/// System responsible for rendering atmos fire animations using <see cref="GasTileFireOverlay"/>.
|
|
/// </summary>
|
|
[UsedImplicitly]
|
|
public sealed partial class GasTileFireOverlaySystem : EntitySystem
|
|
{
|
|
[Dependency] private IOverlayManager _overlayMan = default!;
|
|
|
|
private GasTileFireOverlay _fireOverlay = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
_fireOverlay = new GasTileFireOverlay();
|
|
_overlayMan.AddOverlay(_fireOverlay);
|
|
}
|
|
|
|
public override void Shutdown()
|
|
{
|
|
base.Shutdown();
|
|
_overlayMan.RemoveOverlay<GasTileFireOverlay>();
|
|
}
|
|
}
|