1
0

RequiresEyeProtectionComponent.cs 822 B

12345678910111213141516171819202122
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Eye.Blinding.Components;
  3. /// <summary>
  4. /// For tools like welders that will damage your eyes when you use them.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class RequiresEyeProtectionComponent : Component
  8. {
  9. /// <summary>
  10. /// How long to apply temporary blindness to the user.
  11. /// </summary>
  12. [ViewVariables(VVAccess.ReadWrite), DataField("statusEffectTime"), AutoNetworkedField]
  13. public TimeSpan StatusEffectTime = TimeSpan.FromSeconds(10);
  14. /// <summary>
  15. /// You probably want to turn this on in yaml if it's something always on and not a welder.
  16. /// </summary>
  17. [ViewVariables(VVAccess.ReadWrite), DataField("toggled"), AutoNetworkedField]
  18. public bool Toggled;
  19. }