InternalsComponent.cs 839 B

1234567891011121314151617181920212223242526272829
  1. using Content.Shared.Alert;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Server.Body.Components
  4. {
  5. /// <summary>
  6. /// Handles hooking up a mask (breathing tool) / gas tank together and allowing the Owner to breathe through it.
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class InternalsComponent : Component
  10. {
  11. [ViewVariables]
  12. public EntityUid? GasTankEntity;
  13. [ViewVariables]
  14. public HashSet<EntityUid> BreathTools { get; set; } = new();
  15. /// <summary>
  16. /// Toggle Internals delay when the target is not you.
  17. /// </summary>
  18. [ViewVariables(VVAccess.ReadWrite)]
  19. [DataField]
  20. public TimeSpan Delay = TimeSpan.FromSeconds(3);
  21. [DataField]
  22. public ProtoId<AlertPrototype> InternalsAlert = "Internals";
  23. }
  24. }