2022-11-08 13:04:06 -08:00
|
|
|
|
using System.Threading;
|
|
|
|
|
|
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]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class InternalsComponent : Component
|
2020-10-27 20:53:44 +01:00
|
|
|
|
{
|
2021-12-26 15:32:45 +13:00
|
|
|
|
[ViewVariables] public EntityUid? GasTankEntity { get; set; }
|
|
|
|
|
|
[ViewVariables] public EntityUid? BreathToolEntity { get; set; }
|
2022-11-08 13:04:06 -08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle Internals delay (seconds) when the target is not you.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
|
[DataField("delay")]
|
|
|
|
|
|
public float Delay = 3;
|
2020-10-27 20:53:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|