Content changes for mapgrid kill (#12567)
This commit is contained in:
@@ -3,6 +3,7 @@ using Content.Server.Atmos.Components;
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Maps;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Map.Components;
|
||||
|
||||
namespace Content.Server.Atmos.EntitySystems;
|
||||
|
||||
@@ -38,7 +39,7 @@ public partial class AtmosphereSystem
|
||||
_gasTileOverlaySystem.Invalidate(gridUid, tile);
|
||||
}
|
||||
|
||||
public bool NeedsVacuumFixing(IMapGrid mapGrid, Vector2i indices)
|
||||
public bool NeedsVacuumFixing(MapGridComponent mapGrid, Vector2i indices)
|
||||
{
|
||||
var value = false;
|
||||
|
||||
@@ -58,7 +59,7 @@ public partial class AtmosphereSystem
|
||||
/// <param name="mapGrid">The grid in question.</param>
|
||||
/// <param name="tiles">The amount of tiles.</param>
|
||||
/// <returns>The volume in liters that the tiles occupy.</returns>
|
||||
private float GetVolumeForTiles(IMapGrid mapGrid, int tiles = 1)
|
||||
private float GetVolumeForTiles(MapGridComponent mapGrid, int tiles = 1)
|
||||
{
|
||||
return Atmospherics.CellVolume * mapGrid.TileSize * tiles;
|
||||
}
|
||||
@@ -69,7 +70,7 @@ public partial class AtmosphereSystem
|
||||
/// <param name="mapGrid">The grid where to get the tile.</param>
|
||||
/// <param name="tile">The indices of the tile.</param>
|
||||
/// <returns>The enumerator for the airtight components.</returns>
|
||||
public AtmosObstructionEnumerator GetObstructingComponentsEnumerator(IMapGrid mapGrid, Vector2i tile)
|
||||
public AtmosObstructionEnumerator GetObstructingComponentsEnumerator(MapGridComponent mapGrid, Vector2i tile)
|
||||
{
|
||||
var ancEnumerator = mapGrid.GetAnchoredEntitiesEnumerator(tile);
|
||||
var airQuery = GetEntityQuery<AirtightComponent>();
|
||||
@@ -78,7 +79,7 @@ public partial class AtmosphereSystem
|
||||
return enumerator;
|
||||
}
|
||||
|
||||
private AtmosDirection GetBlockedDirections(IMapGrid mapGrid, Vector2i indices)
|
||||
private AtmosDirection GetBlockedDirections(MapGridComponent mapGrid, Vector2i indices)
|
||||
{
|
||||
var value = AtmosDirection.Invalid;
|
||||
|
||||
@@ -98,7 +99,7 @@ public partial class AtmosphereSystem
|
||||
/// </summary>
|
||||
/// <param name="mapGrid">The grid in question.</param>
|
||||
/// <param name="tile">The indices of the tile.</param>
|
||||
private void PryTile(IMapGrid mapGrid, Vector2i tile)
|
||||
private void PryTile(MapGridComponent mapGrid, Vector2i tile)
|
||||
{
|
||||
if (!mapGrid.TryGetTileRef(tile, out var tileRef))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user