예제 #1
0
 public static GasMixture?GetTileAir(this EntityCoordinates coordinates, IEntityManager?entityManager = null)
 {
     return(coordinates.GetTileAtmosphere(entityManager).Air);
 }
예제 #2
0
 public static bool TryGetTileAtmosphere(this EntityCoordinates coordinates, [MaybeNullWhen(false)] out TileAtmosphere atmosphere)
 {
     // ReSharper disable once ConditionIsAlwaysTrueOrFalse
     return(!Equals(atmosphere = coordinates.GetTileAtmosphere() !, default));
예제 #3
0
 public static GasMixture?GetTileAir(this EntityCoordinates coordinates)
 {
     return(coordinates.GetTileAtmosphere()?.Air);
 }