mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-19 06:28:40 +03:00
32 lines
857 B
C#
32 lines
857 B
C#
using Robust.Client.Graphics;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Client._White.Lighting.Shaders;
|
|
|
|
public sealed class LightingOverlaySystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IOverlayManager _overlayManager = default!;
|
|
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
|
private LightingOverlay? _lightingOverlay;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
_lightingOverlay = new LightingOverlay(EntityManager, _prototypeManager);
|
|
_overlayManager.AddOverlay(_lightingOverlay);
|
|
}
|
|
|
|
public override void Shutdown()
|
|
{
|
|
base.Shutdown();
|
|
|
|
if (_lightingOverlay == null)
|
|
return;
|
|
|
|
_overlayManager.RemoveOverlay(_lightingOverlay);
|
|
_lightingOverlay.Dispose();
|
|
_lightingOverlay = null;
|
|
}
|
|
}
|