FlashImmunityComponent.cs 443 B

12345678910111213
  1. namespace Content.Server.Flash.Components;
  2. /// <summary>
  3. /// Makes the entity immune to being flashed.
  4. /// When given to clothes in the "head", "eyes" or "mask" slot it protects the wearer.
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(FlashSystem))]
  7. public sealed partial class FlashImmunityComponent : Component
  8. {
  9. [ViewVariables(VVAccess.ReadWrite)]
  10. [DataField("enabled")]
  11. public bool Enabled { get; set; } = true;
  12. }