EyeProtectionComponent.cs 470 B

123456789101112131415
  1. namespace Content.Shared.Eye.Blinding.Components;
  2. /// <summary>
  3. /// For welding masks, sunglasses, etc.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class EyeProtectionComponent : Component
  7. {
  8. /// <summary>
  9. /// How many seconds to subtract from the status effect. If it's greater than the source
  10. /// of blindness, do not blind.
  11. /// </summary>
  12. [DataField("protectionTime")]
  13. public TimeSpan ProtectionTime = TimeSpan.FromSeconds(10);
  14. }