Files
tbd-station-14/Content.Server/GameObjects/Components/Atmos/SpaceGridAtmosphereComponent.cs
2020-09-19 15:02:30 +02:00

31 lines
909 B
C#

#nullable enable
using System.Collections.Generic;
using System.Linq;
using Content.Server.Atmos;
using Robust.Shared.Map;
namespace Content.Server.GameObjects.Components.Atmos
{
public class SpaceGridAtmosphereComponent : UnsimulatedGridAtmosphereComponent
{
public override string Name => "SpaceGridAtmosphere";
public override void RepopulateTiles() { }
public override bool IsSpace(MapIndices indices)
{
return true;
}
public override TileAtmosphere? GetTile(MapIndices indices, bool createSpace = true)
{
return new TileAtmosphere(this, GridId.Invalid, indices, new GasMixture(2500, AtmosphereSystem), true);
}
protected override IEnumerable<AirtightComponent> GetObstructingComponents(MapIndices indices)
{
return Enumerable.Empty<AirtightComponent>();
}
}
}