Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Oct 16, 2024
1 parent fab2283 commit b69b901
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16 deletions.
5 changes: 0 additions & 5 deletions Content.Client/_White/Overlays/NightVisionOverlay.cs

This file was deleted.

4 changes: 2 additions & 2 deletions Content.Client/_White/Overlays/NightVisionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed class NightVisionSystem : SwitchableOverlaySystem<NightVisionCompo
[Dependency] private readonly IOverlayManager _overlayMan = default!;
[Dependency] private readonly ILightManager _lightManager = default!;

private NightVisionOverlay _overlay = default!;
private BaseSwitchableOverlay<NightVisionComponent> _overlay = default!;

public override void Initialize()
{
Expand All @@ -22,7 +22,7 @@ public override void Initialize()
SubscribeLocalEvent<NightVisionComponent, PlayerDetachedEvent>(OnPlayerDetached);
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRestart);

_overlay = new NightVisionOverlay();
_overlay = new BaseSwitchableOverlay<NightVisionComponent>();

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'

Check failure on line 25 in Content.Client/_White/Overlays/NightVisionSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<NightVisionComponent>'
}

private void OnPlayerAttached(EntityUid uid, NightVisionComponent component, PlayerAttachedEvent args)
Expand Down
5 changes: 0 additions & 5 deletions Content.Client/_White/Overlays/ThermalOverlay.cs

This file was deleted.

4 changes: 2 additions & 2 deletions Content.Client/_White/Overlays/ThermalVisionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed class ThermalVisionSystem : SwitchableOverlaySystem<ThermalVisionC
[Dependency] private readonly IOverlayManager _overlayMan = default!;

private ThermalVisionOverlay _thermalOverlay = default!;
private ThermalOverlay _overlay = default!;
private BaseSwitchableOverlay<ThermalVisionComponent> _overlay = default!;

public override void Initialize()
{
Expand All @@ -23,7 +23,7 @@ public override void Initialize()
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRestart);

_thermalOverlay = new ThermalVisionOverlay();
_overlay = new ThermalOverlay();
_overlay = new BaseSwitchableOverlay<ThermalVisionComponent>();

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'

Check failure on line 26 in Content.Client/_White/Overlays/ThermalVisionSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Cannot create an instance of the abstract type or interface 'BaseSwitchableOverlay<ThermalVisionComponent>'
}

private void OnPlayerAttached(EntityUid uid, ThermalVisionComponent component, PlayerAttachedEvent args)
Expand Down
1 change: 0 additions & 1 deletion Content.Shared/_White/Overlays/BaseOverlayComponent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Content.Shared._White.Overlays;

[RegisterComponent]
public abstract partial class BaseOverlayComponent : Component
{
[DataField, ViewVariables(VVAccess.ReadOnly)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Content.Shared._White.Overlays;

[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[AutoGenerateComponentState]
public abstract partial class SwitchableOverlayComponent : BaseOverlayComponent
{
[DataField, AutoNetworkedField]
Expand Down

0 comments on commit b69b901

Please sign in to comment.