Make passive gates great (#9816)

This commit is contained in:
Kevin Zheng
2022-07-30 20:00:34 -07:00
committed by GitHub
parent b445c5c3f9
commit da11acd8c3
3 changed files with 52 additions and 26 deletions

View File

@@ -5,17 +5,6 @@ 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";
@@ -24,8 +13,8 @@ namespace Content.Server.Atmos.Piping.Binary.Components
[DataField("outlet")]
public string OutletName { get; set; } = "outlet";
[ViewVariables(VVAccess.ReadWrite)]
[DataField("targetPressure")]
public float TargetPressure { get; set; } = Atmospherics.OneAtmosphere;
[ViewVariables(VVAccess.ReadOnly)]
[DataField("flowRate")]
public float FlowRate { get; set; } = 0;
}
}