#nullable enable using System.Collections.Generic; using System.Linq; using Content.Shared.Atmos; using Robust.Shared.GameObjects; using Robust.Shared.Map; using Robust.Shared.Maths; namespace Content.Server.Atmos.Components { [RegisterComponent] [ComponentReference(typeof(IGridAtmosphereComponent))] public class SpaceGridAtmosphereComponent : UnsimulatedGridAtmosphereComponent { public override string Name => "SpaceGridAtmosphere"; public override void RepopulateTiles() { } public override bool IsSpace(Vector2i indices) { return true; } public override TileAtmosphere GetTile(Vector2i indices, bool createSpace = true) { return new(this, GridId.Invalid, indices, new GasMixture(Atmospherics.CellVolume), true); } protected override IEnumerable GetObstructingComponents(Vector2i indices) { return Enumerable.Empty(); } } }