From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 16 Feb 2025 10:36:35 +0000 (+1100) Subject: Refactor map loading & saving (#34020) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2bd7bb17f2e580734c8bbc5ec204e53cfb7ee578;p=space-station-14.git Refactor map loading & saving (#34020) --- 2bd7bb17f2e580734c8bbc5ec204e53cfb7ee578 diff --cc Content.IntegrationTests/Tests/SaveLoadMapTest.cs index 1bfcd8ab60,b96fbe5767..eb3dc14720 --- a/Content.IntegrationTests/Tests/SaveLoadMapTest.cs +++ b/Content.IntegrationTests/Tests/SaveLoadMapTest.cs @@@ -44,11 -45,11 +45,11 @@@ namespace Content.IntegrationTests.Test { var mapGrid = mapManager.CreateGridEntity(mapId); xformSystem.SetWorldPosition(mapGrid, new Vector2(-8, -8)); - mapSystem.SetTile(mapGrid, new Vector2i(0, 0), new Tile(2, (TileRenderFlag) 1, 254)); + mapSystem.SetTile(mapGrid, new Vector2i(0, 0), new Tile(typeId: 2, flags: 1, variant: 254)); } - Assert.Multiple(() => mapLoader.SaveMap(mapId, mapPath)); - Assert.Multiple(() => mapManager.DeleteMap(mapId)); + Assert.That(mapLoader.TrySaveMap(mapId, mapPath)); + mapSystem.DeleteMap(mapId); }); await server.WaitIdleAsync();