2024-05-23 22:43:04 -04:00
|
|
|
using Content.Shared.Alert;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
2022-11-08 13:04:06 -08:00
|
|
|
namespace Content.Server.Body.Components
|
2020-10-27 20:53:44 +01:00
|
|
|
{
|
2022-07-25 14:42:25 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Handles hooking up a mask (breathing tool) / gas tank together and allowing the Owner to breathe through it.
|
|
|
|
|
/// </summary>
|
2020-10-27 20:53:44 +01:00
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class InternalsComponent : Component
|
2020-10-27 20:53:44 +01:00
|
|
|
{
|
2024-03-28 01:48:37 +01:00
|
|
|
[ViewVariables]
|
|
|
|
|
public EntityUid? GasTankEntity;
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2024-06-06 00:01:45 -07:00
|
|
|
public HashSet<EntityUid> BreathTools { get; set; } = new();
|
2022-11-08 13:04:06 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
2024-03-28 01:48:37 +01:00
|
|
|
/// Toggle Internals delay when the target is not you.
|
2022-11-08 13:04:06 -08:00
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2024-03-28 01:48:37 +01:00
|
|
|
[DataField]
|
|
|
|
|
public TimeSpan Delay = TimeSpan.FromSeconds(3);
|
2024-05-23 22:43:04 -04:00
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<AlertPrototype> InternalsAlert = "Internals";
|
2020-10-27 20:53:44 +01:00
|
|
|
}
|
2024-08-07 01:15:35 -04:00
|
|
|
|
2020-10-27 20:53:44 +01:00
|
|
|
}
|