ProtectedFromStepTriggersComponent.cs 591 B

12345678910111213141516
  1. using Content.Shared.Inventory;
  2. using Content.Shared.StepTrigger.Systems;
  3. using Robust.Shared.GameStates;
  4. namespace Content.Shared.StepTrigger.Components;
  5. /// <summary>
  6. /// This is used for cancelling preventable step trigger events if the user is wearing clothing in a valid slot or if the user itself has the component.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent]
  9. [Access(typeof(StepTriggerImmuneSystem))]
  10. public sealed partial class ProtectedFromStepTriggersComponent : Component, IClothingSlots
  11. {
  12. [DataField]
  13. public SlotFlags Slots { get; set; } = SlotFlags.FEET;
  14. }