2022-05-13 00:59:03 -07:00
|
|
|
|
using Robust.Shared.Serialization;
|
2021-11-11 16:10:21 -06:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Atmos.Piping.Trinary.Components
|
|
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum GasMixerUiKey
|
|
|
|
|
|
{
|
|
|
|
|
|
Key,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasMixerBoundUserInterfaceState : BoundUserInterfaceState
|
2021-11-11 16:10:21 -06:00
|
|
|
|
{
|
|
|
|
|
|
public string MixerLabel { get; }
|
|
|
|
|
|
public float OutputPressure { get; }
|
|
|
|
|
|
public bool Enabled { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public float NodeOne { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasMixerBoundUserInterfaceState(string mixerLabel, float outputPressure, bool enabled, float nodeOne)
|
|
|
|
|
|
{
|
|
|
|
|
|
MixerLabel = mixerLabel;
|
|
|
|
|
|
OutputPressure = outputPressure;
|
|
|
|
|
|
Enabled = enabled;
|
|
|
|
|
|
NodeOne = nodeOne;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasMixerToggleStatusMessage : BoundUserInterfaceMessage
|
2021-11-11 16:10:21 -06:00
|
|
|
|
{
|
|
|
|
|
|
public bool Enabled { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasMixerToggleStatusMessage(bool enabled)
|
|
|
|
|
|
{
|
|
|
|
|
|
Enabled = enabled;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasMixerChangeOutputPressureMessage : BoundUserInterfaceMessage
|
2021-11-11 16:10:21 -06:00
|
|
|
|
{
|
|
|
|
|
|
public float Pressure { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasMixerChangeOutputPressureMessage(float pressure)
|
|
|
|
|
|
{
|
|
|
|
|
|
Pressure = pressure;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class GasMixerChangeNodePercentageMessage : BoundUserInterfaceMessage
|
2021-11-11 16:10:21 -06:00
|
|
|
|
{
|
|
|
|
|
|
public float NodeOne { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public GasMixerChangeNodePercentageMessage(float nodeOne)
|
|
|
|
|
|
{
|
|
|
|
|
|
NodeOne = nodeOne;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|