mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-12 11:51:11 +03:00
31 lines
1 KiB
C#
31 lines
1 KiB
C#
using Content.Shared.Atmos;
|
|
|
|
namespace Content.Server.Atmos.Piping.Binary.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed class GasPassiveGateComponent : Component
|
|
{
|
|
[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)]
|
|
[DataField("targetPressure")]
|
|
public float TargetPressure { get; set; } = Atmospherics.OneAtmosphere;
|
|
}
|
|
}
|