Fix dual port vents 2: Electric Boogaloo (#8396)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Atmos.Piping.Unary.Components;
|
||||
using Content.Shared.MachineLinking;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
{
|
||||
@@ -17,7 +19,11 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("inlet")]
|
||||
public string InletName { get; set; } = "pipe";
|
||||
public string Inlet { get; set; } = "pipe";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("outlet")]
|
||||
public string Outlet { get; set; } = "pipe";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("pumpDirection")]
|
||||
@@ -72,6 +78,28 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[DataField("targetPressureChange")]
|
||||
public float TargetPressureChange = Atmospherics.OneAtmosphere;
|
||||
|
||||
#region Machine Linking
|
||||
/// <summary>
|
||||
/// Whether or not machine linking is enabled for this component.
|
||||
/// </summary>
|
||||
[DataField("canLink")]
|
||||
public readonly bool CanLink = false;
|
||||
|
||||
[DataField("pressurizePort", customTypeSerializer: typeof(PrototypeIdSerializer<ReceiverPortPrototype>))]
|
||||
public string PressurizePort = "Pressurize";
|
||||
|
||||
[DataField("depressurizePort", customTypeSerializer: typeof(PrototypeIdSerializer<ReceiverPortPrototype>))]
|
||||
public string DepressurizePort = "Depressurize";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("pressurizePressure")]
|
||||
public float PressurizePressure = Atmospherics.OneAtmosphere;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("depressurizePressure")]
|
||||
public float DepressurizePressure = 0;
|
||||
#endregion
|
||||
|
||||
public GasVentPumpData ToAirAlarmData()
|
||||
{
|
||||
return new GasVentPumpData
|
||||
|
||||
Reference in New Issue
Block a user