Transition blits to CellCoordsRegion

This commit is contained in:
Gustas
2025-08-06 17:30:33 +03:00
committed by Paul Chote
parent 032f20b622
commit dcd4c41d81
9 changed files with 58 additions and 65 deletions

View File

@@ -176,10 +176,10 @@ namespace OpenRA.Mods.Common.Traits
NetWorth += newDensity * newResourceValue;
}
public int CalculateRegionValue(CellRegion sourceRegion)
public int CalculateRegionValue(CellCoordsRegion sourceRegion)
{
var resourceValueInRegion = 0;
foreach (var cell in sourceRegion.CellCoords)
foreach (var cell in sourceRegion)
{
var mcell = cell.ToMPos(Map);
if (!Map.Resources.Contains(mcell))