Add cryopod logs (#16854)
This commit is contained in:
18
Content.Server/Atmos/GasMixtureStringRepresentation.cs
Normal file
18
Content.Server/Atmos/GasMixtureStringRepresentation.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user