1
0

ResistLockerComponent.cs 533 B

1234567891011121314151617181920
  1. using System.Threading;
  2. namespace Content.Server.Resist;
  3. [RegisterComponent]
  4. [Access(typeof(ResistLockerSystem))]
  5. public sealed partial class ResistLockerComponent : Component
  6. {
  7. /// <summary>
  8. /// How long will this locker take to kick open, defaults to 2 minutes
  9. /// </summary>
  10. [DataField("resistTime")]
  11. public float ResistTime = 120f;
  12. /// <summary>
  13. /// For quick exit if the player attempts to move while already resisting
  14. /// </summary>
  15. [ViewVariables]
  16. public bool IsResisting = false;
  17. }