Gas tanks and masks (#2409)

Co-authored-by: a.rudenko <creadth@gmail.com>
Co-authored-by: creadth <creadth@users.noreply.github.com>
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
Víctor Aguilera Puerto
2020-10-27 20:53:44 +01:00
committed by GitHub
parent 329926b175
commit 870d052354
77 changed files with 1653 additions and 58 deletions

View File

@@ -19,6 +19,17 @@ namespace Content.Shared.Atmos
/// </summary>
public float SpecificHeat { get; private set; }
/// <summary>
/// Heat capacity ratio for gas
/// </summary>
public float HeatCapacityRatio { get; private set; }
/// <summary>
/// Molar mass of gas
/// </summary>
public float MolarMass { get; set; }
/// <summary>
/// Minimum amount of moles for this gas to be visible.
/// </summary>
@@ -49,6 +60,7 @@ namespace Content.Shared.Atmos
/// </summary>
public string OverlayPath { get; private set; }
public string Color { get; private set; }
public void LoadFrom(YamlMappingNode mapping)
@@ -59,6 +71,8 @@ namespace Content.Shared.Atmos
serializer.DataField(this, x => Name, "name", string.Empty);
serializer.DataField(this, x => OverlayPath, "overlayPath", string.Empty);
serializer.DataField(this, x => SpecificHeat, "specificHeat", 0f);
serializer.DataField(this, x => HeatCapacityRatio, "heatCapacityRatio", 1.4f);
serializer.DataField(this, x => MolarMass, "molarMass", 1f);
serializer.DataField(this, x => GasMolesVisible, "gasMolesVisible", 0.25f);
serializer.DataField(this, x => GasOverlayTexture, "gasOverlayTexture", string.Empty);
serializer.DataField(this, x => GasOverlaySprite, "gasOverlaySprite", string.Empty);