Show volume on the gas analyzer (#25720)
The gas analyzer now shows the volume of pipes, tanks, canisters and the environment. Adjust gas analyzers so that the volume and number of moles shown corresponds to only the scanned element, e.g. a canister or single pipe in a pipenet.
This commit is contained in:
@@ -56,13 +56,15 @@ public sealed partial class GasAnalyzerComponent : Component
|
||||
/// Name of the tab in the UI
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
public readonly float Volume;
|
||||
public readonly float Pressure;
|
||||
public readonly float Temperature;
|
||||
public readonly GasEntry[]? Gases;
|
||||
|
||||
public GasMixEntry(string name, float pressure, float temperature, GasEntry[]? gases = null)
|
||||
public GasMixEntry(string name, float volume, float pressure, float temperature, GasEntry[]? gases = null)
|
||||
{
|
||||
Name = name;
|
||||
Volume = volume;
|
||||
Pressure = pressure;
|
||||
Temperature = temperature;
|
||||
Gases = gases;
|
||||
|
||||
Reference in New Issue
Block a user