- add: Enhanced vision refactor. (#471)

This commit is contained in:
Aviu00
2024-07-21 11:30:47 +00:00
committed by GitHub
parent b16052f0ab
commit d0acfd7790
11 changed files with 156 additions and 171 deletions

View File

@@ -6,25 +6,13 @@ using Robust.Shared.Prototypes;
namespace Content.Shared._White.Overlays;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class NightVisionComponent : BaseNvOverlayComponent
public sealed partial class NightVisionComponent : BaseEnhancedVisionComponent
{
[DataField, ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
public override Color Color { get; set; } = Color.FromHex("#98FB98");
[DataField, ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
public bool IsActive = true;
[DataField]
public SoundSpecifier? ActivateSound = new SoundPathSpecifier("/Audio/White/Items/Goggles/activate.ogg");
[DataField]
public SoundSpecifier? DeactivateSound = new SoundPathSpecifier("/Audio/White/Items/Goggles/deactivate.ogg");
[DataField]
public EntProtoId? ToggleAction = "ToggleNightVision";
[ViewVariables]
public EntityUid? ToggleActionEntity;
public override EntProtoId? ToggleAction { get; set; } = "ToggleNightVision";
}
public sealed partial class ToggleNightVisionEvent : InstantActionEvent