public static bool TryGetTileAtmosphere(this GridCoordinates coordinates, [MaybeNullWhen(false)] out TileAtmosphere atmosphere) { // ReSharper disable once ConditionIsAlwaysTrueOrFalse return(!Equals(atmosphere = coordinates.GetTileAtmosphere() !, default));
public static GasMixture?GetTileAir(this GridCoordinates coordinates) { return(coordinates.GetTileAtmosphere()?.Air); }