* Predict dumping - This got soaped really fucking hard. - Dumping is predicted, this required disposals to be predicte.d - Disposals required mailing (because it's tightly coupled), and a smidge of other content systems. - I also had to fix a compnetworkgenerator issue at the same time so it wouldn't mispredict. * Fix a bunch of stuff * nasty merge * Some reviews * Some more reviews while I stash * Fix merge * Fix merge * Half of review * Review * re(h)f * lizards * feexes * feex
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using Content.Server.Atmos.Piping.Unary.EntitySystems;
|
|
using Content.Shared.Atmos;
|
|
using Content.Shared.Atmos.Piping.Binary.Components;
|
|
using Content.Shared.Guidebook;
|
|
|
|
namespace Content.Server.Atmos.Piping.Unary.Components
|
|
{
|
|
[RegisterComponent]
|
|
[Access(typeof(GasOutletInjectorSystem))]
|
|
public sealed partial class GasOutletInjectorComponent : Component
|
|
{
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Target volume to transfer. If <see cref="WideNet"/> is enabled, actual transfer rate will be much higher.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public float TransferRate
|
|
{
|
|
get => _transferRate;
|
|
set => _transferRate = Math.Clamp(value, 0f, MaxTransferRate);
|
|
}
|
|
|
|
private float _transferRate = 50;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("maxTransferRate")]
|
|
public float MaxTransferRate = Atmospherics.MaxTransferRate;
|
|
|
|
[DataField("maxPressure")]
|
|
[GuidebookData]
|
|
public float MaxPressure { get; set; } = GasVolumePumpComponent.DefaultHigherThreshold;
|
|
|
|
[DataField("inlet")]
|
|
public string InletName { get; set; } = "pipe";
|
|
}
|
|
}
|