mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
19 lines
542 B
C#
19 lines
542 B
C#
using System.Linq;
|
|
|
|
namespace Content.Server.Atmos;
|
|
|
|
public readonly record struct GasMixtureStringRepresentation(float TotalMoles, float Temperature, float Pressure, Dictionary<string, float> MolesPerGas) : IFormattable
|
|
{
|
|
public override string ToString()
|
|
{
|
|
return $"{Temperature}K {Pressure} kPa";
|
|
}
|
|
|
|
public string ToString(string? format, IFormatProvider? formatProvider)
|
|
{
|
|
return ToString();
|
|
}
|
|
|
|
public static implicit operator string(GasMixtureStringRepresentation rep) => rep.ToString();
|
|
}
|