Remove Explicit GridId References (#8315)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#nullable enable
|
||||
#nullable enable
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Fluids.Components;
|
||||
@@ -55,13 +55,13 @@ public sealed class FluidSpill : ContentIntegrationTest
|
||||
var spillSystem = server.ResolveDependency<IEntitySystemManager>().GetEntitySystem<SpillableSystem>();
|
||||
var gameTiming = server.ResolveDependency<IGameTiming>();
|
||||
MapId mapId;
|
||||
GridId gridId = default;
|
||||
EntityUid gridId = default;
|
||||
|
||||
await server.WaitPost(() =>
|
||||
{
|
||||
mapId = mapManager.CreateMap();
|
||||
var grid = mapManager.CreateGrid(mapId);
|
||||
gridId = grid.Index;
|
||||
gridId = grid.GridEntityId;
|
||||
|
||||
for (var x = 0; x < 3; x++)
|
||||
{
|
||||
@@ -118,7 +118,7 @@ public sealed class FluidSpill : ContentIntegrationTest
|
||||
var spillSystem = server.ResolveDependency<IEntitySystemManager>().GetEntitySystem<SpillableSystem>();
|
||||
var gameTiming = server.ResolveDependency<IGameTiming>();
|
||||
MapId mapId;
|
||||
GridId gridId = default;
|
||||
EntityUid gridId = default;
|
||||
|
||||
await server.WaitPost(() =>
|
||||
{
|
||||
@@ -133,7 +133,7 @@ public sealed class FluidSpill : ContentIntegrationTest
|
||||
}
|
||||
}
|
||||
|
||||
gridId = grid.Index;
|
||||
gridId = grid.GridEntityId;
|
||||
});
|
||||
|
||||
await server.WaitAssertion(() =>
|
||||
|
||||
@@ -92,8 +92,7 @@ namespace Content.IntegrationTests.Tests.Fluids
|
||||
|
||||
MapId sMapId = default;
|
||||
IMapGrid sGrid;
|
||||
GridId sGridId = default;
|
||||
EntityUid sGridEntity = default;
|
||||
EntityUid sGridId = default;
|
||||
EntityCoordinates sCoordinates = default;
|
||||
|
||||
// Spawn a paused map with one tile to spawn puddles on
|
||||
@@ -102,9 +101,8 @@ namespace Content.IntegrationTests.Tests.Fluids
|
||||
sMapId = sMapManager.CreateMap();
|
||||
sMapManager.SetMapPaused(sMapId, true);
|
||||
sGrid = sMapManager.CreateGrid(sMapId);
|
||||
sGridId = sGrid.Index;
|
||||
sGridEntity = sGrid.GridEntityId;
|
||||
entityManager.GetComponent<MetaDataComponent>(sGridEntity).EntityPaused = true; // See https://github.com/space-wizards/RobustToolbox/issues/1444
|
||||
sGridId = sGrid.GridEntityId;
|
||||
entityManager.GetComponent<MetaDataComponent>(sGridId).EntityPaused = true; // See https://github.com/space-wizards/RobustToolbox/issues/1444
|
||||
|
||||
var tileDefinition = sTileDefinitionManager["underplating"];
|
||||
var tile = new Tile(tileDefinition.TileId);
|
||||
|
||||
Reference in New Issue
Block a user