22 lines
681 B
C#
22 lines
681 B
C#
using Content.Shared.Eye.Blinding.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Eye.Blinding.Components;
|
|
|
|
/// <summary>
|
|
/// This component adds a white overlay to the viewport. It does not actually cause blurring.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(BlurryVisionSystem))]
|
|
public sealed partial class BlurryVisionComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Amount of "blurring". Also modifies examine ranges.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("magnitude"), AutoNetworkedField]
|
|
public float Magnitude;
|
|
|
|
public const float MaxMagnitude = 3;
|
|
}
|