mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* 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
30 lines
1,010 B
C#
30 lines
1,010 B
C#
using Content.Client.Parallax;
|
|
using Content.Client.Weather;
|
|
using Content.Shared.StatusEffectNew;
|
|
using Robust.Client.GameObjects;
|
|
using Robust.Client.Graphics;
|
|
|
|
namespace Content.Client.Overlays;
|
|
|
|
public sealed partial class StencilOverlaySystem : EntitySystem
|
|
{
|
|
[Dependency] private IOverlayManager _overlay = default!;
|
|
[Dependency] private ParallaxSystem _parallax = default!;
|
|
[Dependency] private SharedTransformSystem _transform = default!;
|
|
[Dependency] private SharedMapSystem _map = default!;
|
|
[Dependency] private SpriteSystem _sprite = default!;
|
|
[Dependency] private WeatherSystem _weather = default!;
|
|
[Dependency] private StatusEffectsSystem _status = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
_overlay.AddOverlay(new StencilOverlay(_parallax, _transform, _map, _sprite, _weather, _status));
|
|
}
|
|
|
|
public override void Shutdown()
|
|
{
|
|
base.Shutdown();
|
|
_overlay.RemoveOverlay<StencilOverlay>();
|
|
}
|
|
}
|