2021-11-04 19:41:56 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Atmos.Piping.Binary.Components
|
|
|
|
|
|
{
|
|
|
|
|
|
[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;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|