fish-station/Content.Shared/_Sunrise/Eye/DarkenedVisionComponent.cs

27 lines
No EOL
819 B
C#

using Robust.Shared.GameStates;
using Content.Shared.Sunrise.Eye;
using Content.Shared.Sunrise.Clothing.EntitySystems;
using Content.Shared.Sunrise.Clothing.Components;
using Content.Shared.Clothing;
namespace Content.Shared.Sunrise.Eye;
/// <summary>
/// Adds overlay for client that darkness vision
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedDarkenedVisionSystem))]
public sealed partial class DarkenedVisionComponent : Component
{
/// <summary>
/// How much is vision darkened (in tiles from screen edge)
/// </summary>
[DataField, AutoNetworkedField]
public float Strength = 0;
/// <summary>
/// If strength is higher than this value users goes blind
/// </summary>
[DataField]
public float BlindTreshold = 8;
}