Change Map.MapSize from int2 to Size.

This commit is contained in:
Paul Chote
2025-04-19 09:36:00 +01:00
committed by Gustas Kažukauskas
parent 2fbbff2860
commit ede12610a8
28 changed files with 94 additions and 91 deletions

View File

@@ -80,9 +80,9 @@ namespace OpenRA.Mods.Common.Traits
colors.Add(resourceIndex, info.Color);
}
for (var i = 0; i < map.MapSize.X; i++)
for (var i = 0; i < map.MapSize.Width; i++)
{
for (var j = 0; j < map.MapSize.Y; j++)
for (var j = 0; j < map.MapSize.Height; j++)
{
var cell = new MPos(i, j);
if (colors.TryGetValue(map.Resources[cell].Type, out var color))