Load grid error related changes (#10817)
This commit is contained in:
@@ -72,7 +72,7 @@ namespace Content.IntegrationTests.Tests.Body
|
||||
await server.WaitPost(() =>
|
||||
{
|
||||
mapId = mapManager.CreateMap();
|
||||
grid = mapLoader.LoadBlueprint(mapId, testMapName).gridId;
|
||||
grid = mapLoader.LoadGrid(mapId, testMapName).gridId;
|
||||
});
|
||||
|
||||
Assert.NotNull(grid, $"Test blueprint {testMapName} not found.");
|
||||
@@ -144,7 +144,7 @@ namespace Content.IntegrationTests.Tests.Body
|
||||
await server.WaitPost(() =>
|
||||
{
|
||||
mapId = mapManager.CreateMap();
|
||||
grid = mapLoader.LoadBlueprint(mapId, testMapName).gridId;
|
||||
grid = mapLoader.LoadGrid(mapId, testMapName).gridId;
|
||||
});
|
||||
|
||||
Assert.NotNull(grid, $"Test blueprint {testMapName} not found.");
|
||||
|
||||
@@ -27,10 +27,10 @@ namespace Content.IntegrationTests.Tests
|
||||
{
|
||||
// TODO: Properly find the "main" station grid.
|
||||
var grid0 = mapManager.GetAllGrids().First();
|
||||
mapLoader.SaveBlueprint(grid0.GridEntityId, "save load save 1.yml");
|
||||
mapLoader.SaveGrid(grid0.GridEntityId, "save load save 1.yml");
|
||||
var mapId = mapManager.CreateMap();
|
||||
var grid = mapLoader.LoadBlueprint(mapId, "save load save 1.yml").gridId;
|
||||
mapLoader.SaveBlueprint(grid!.Value, "save load save 2.yml");
|
||||
var grid = mapLoader.LoadGrid(mapId, "save load save 1.yml").gridId;
|
||||
mapLoader.SaveGrid(grid!.Value, "save load save 2.yml");
|
||||
});
|
||||
|
||||
await server.WaitIdleAsync();
|
||||
|
||||
Reference in New Issue
Block a user