Enables nullables for atmos internals

This commit is contained in:
Vera Aguilera Puerto
2021-08-02 17:03:13 +02:00
parent 34defef80f
commit 611340e454
5 changed files with 42 additions and 54 deletions

View File

@@ -1,5 +1,3 @@
#nullable disable warnings
#nullable enable annotations
using Content.Shared.Atmos;
using Content.Shared.Maps;
using Robust.Shared.Map;
@@ -71,6 +69,12 @@ namespace Content.Server.Atmos
[ViewVariables]
public GasMixture? Air { get; set; }
GasMixture IGasMixtureHolder.Air
{
get => Air ?? new GasMixture(Atmospherics.CellVolume){ Temperature = Temperature };
set => Air = value;
}
[ViewVariables]
public float MaxFireTemperatureSustained { get; set; }