2021-06-19 13:25:05 +02:00
|
|
|
using Content.Shared.Atmos;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Atmos.Piping.Binary.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class GasPassiveGateComponent : Component
|
2021-06-19 13:25:05 +02:00
|
|
|
{
|
|
|
|
|
[DataField("enabled")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This is the minimum difference needed to overcome the friction in the mechanism.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("frictionDifference")]
|
|
|
|
|
public float FrictionPressureDifference { get; set; } = 10f;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("inlet")]
|
|
|
|
|
public string InletName { get; set; } = "inlet";
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("outlet")]
|
|
|
|
|
public string OutletName { get; set; } = "outlet";
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2022-03-01 03:39:30 +13:00
|
|
|
[DataField("targetPressure")]
|
2021-06-19 13:25:05 +02:00
|
|
|
public float TargetPressure { get; set; } = Atmospherics.OneAtmosphere;
|
|
|
|
|
}
|
|
|
|
|
}
|