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
|
|
|
|
|
|
{
|
2023-08-12 22:41:55 +02:00
|
|
|
|
public sealed record GasVolumePumpData(float LastMolesTransferred);
|
|
|
|
|
|
|
2021-11-04 19:41:56 -05:00
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum GasVolumePumpUiKey
|
|
|
|
|
|
{
|
|
|
|
|
|
Key,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasVolumePumpBoundUserInterfaceState : BoundUserInterfaceState
|
2021-11-04 19:41:56 -05:00
|
|
|
|
{
|
|
|
|
|
|
public string PumpLabel { get; }
|
|
|
|
|
|
public float TransferRate { get; }
|
|
|
|
|
|
public bool Enabled { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasVolumePumpBoundUserInterfaceState(string pumpLabel, float transferRate, bool enabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
PumpLabel = pumpLabel;
|
|
|
|
|
|
TransferRate = transferRate;
|
|
|
|
|
|
Enabled = enabled;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasVolumePumpToggleStatusMessage : BoundUserInterfaceMessage
|
2021-11-04 19:41:56 -05:00
|
|
|
|
{
|
|
|
|
|
|
public bool Enabled { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasVolumePumpToggleStatusMessage(bool enabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
Enabled = enabled;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasVolumePumpChangeTransferRateMessage : BoundUserInterfaceMessage
|
2021-11-04 19:41:56 -05:00
|
|
|
|
{
|
|
|
|
|
|
public float TransferRate { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasVolumePumpChangeTransferRateMessage(float transferRate)
|
|
|
|
|
|
{
|
|
|
|
|
|
TransferRate = transferRate;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|