2022-05-13 00:59:03 -07:00
|
|
|
|
using Robust.Shared.Serialization;
|
2021-11-04 19:41:56 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Atmos.Piping.Binary.Components
|
|
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum GasPressurePumpUiKey
|
|
|
|
|
|
{
|
|
|
|
|
|
Key,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasPressurePumpBoundUserInterfaceState : BoundUserInterfaceState
|
2021-11-04 19:41:56 -05:00
|
|
|
|
{
|
|
|
|
|
|
public string PumpLabel { get; }
|
|
|
|
|
|
public float OutputPressure { get; }
|
|
|
|
|
|
public bool Enabled { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasPressurePumpBoundUserInterfaceState(string pumpLabel, float outputPressure, bool enabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
PumpLabel = pumpLabel;
|
|
|
|
|
|
OutputPressure = outputPressure;
|
|
|
|
|
|
Enabled = enabled;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasPressurePumpToggleStatusMessage : BoundUserInterfaceMessage
|
2021-11-04 19:41:56 -05:00
|
|
|
|
{
|
|
|
|
|
|
public bool Enabled { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasPressurePumpToggleStatusMessage(bool enabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
Enabled = enabled;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasPressurePumpChangeOutputPressureMessage : BoundUserInterfaceMessage
|
2021-11-04 19:41:56 -05:00
|
|
|
|
{
|
|
|
|
|
|
public float Pressure { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasPressurePumpChangeOutputPressureMessage(float pressure)
|
|
|
|
|
|
{
|
|
|
|
|
|
Pressure = pressure;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|