Make thermomachines more thermodynamically sound (#18984)

Co-authored-by: Ilya246 <ilyukarno@gmail.com>
This commit is contained in:
Kevin Zheng
2023-08-22 00:34:45 -07:00
committed by GitHub
parent 8636234ff1
commit bb7a19d32e
5 changed files with 107 additions and 60 deletions

View File

@@ -12,14 +12,6 @@ public enum ThermomachineUiKey
Key
}
[Serializable]
[NetSerializable]
public enum ThermoMachineMode : byte
{
Freezer = 0,
Heater = 1,
}
[Serializable]
[NetSerializable]
public sealed class GasThermomachineToggleMessage : BoundUserInterfaceMessage
@@ -46,14 +38,14 @@ public sealed class GasThermomachineBoundUserInterfaceState : BoundUserInterface
public float MaxTemperature { get; }
public float Temperature { get; }
public bool Enabled { get; }
public ThermoMachineMode Mode { get; }
public bool IsHeater { get; }
public GasThermomachineBoundUserInterfaceState(float minTemperature, float maxTemperature, float temperature, bool enabled, ThermoMachineMode mode)
public GasThermomachineBoundUserInterfaceState(float minTemperature, float maxTemperature, float temperature, bool enabled, bool isHeater)
{
MinTemperature = minTemperature;
MaxTemperature = maxTemperature;
Temperature = temperature;
Enabled = enabled;
Mode = mode;
IsHeater = isHeater;
}
}