CatStation/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasMixerComponent.cs
psykana ad60a5a5a5
Predict gas filter and mixer BUIs (#43712)
* move

* NetworkedComponent

* anchor

* split

* move

* mixer

* fix

* builds

* I forgor

* moar

* filename typo

* fix admin log

* ftl

* metadata

* IOC readonly 2

* yet another IOC readonly

* new features

* test I fix you

* review 1

* review 2

* docs
2026-07-19 23:50:39 +00:00

42 lines
923 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.Atmos.Piping.Trinary.Components;
[Serializable, NetSerializable]
public enum GasMixerUiKey
{
Key,
}
[Serializable, NetSerializable]
public sealed class GasMixerToggleStatusMessage : BoundUserInterfaceMessage
{
public bool Enabled { get; }
public GasMixerToggleStatusMessage(bool enabled)
{
Enabled = enabled;
}
}
[Serializable, NetSerializable]
public sealed class GasMixerChangeOutputPressureMessage : BoundUserInterfaceMessage
{
public float Pressure { get; }
public GasMixerChangeOutputPressureMessage(float pressure)
{
Pressure = pressure;
}
}
[Serializable, NetSerializable]
public sealed class GasMixerChangeNodePercentageMessage : BoundUserInterfaceMessage
{
public float NodeOne { get; }
public GasMixerChangeNodePercentageMessage(float nodeOne)
{
NodeOne = nodeOne;
}
}