move MakeArray to FileFormats.Exts

This commit is contained in:
Chris Forbes
2011-12-27 14:52:11 +13:00
parent 523183431b
commit dd88a1269a
7 changed files with 14 additions and 14 deletions

View File

@@ -50,7 +50,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<PipType> GetPips(Actor self)
{
var pips = Info.PipCount != 0 ? Info.PipCount : Info.Ammo;
return Graphics.Util.MakeArray(pips,
return Exts.MakeArray(pips,
i => (ammo * pips) / Info.Ammo > i ? PipType.Green : PipType.Transparent);
}
}

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<PipType> GetPips(Actor self)
{
return Graphics.Util.MakeArray( Info.PipCount,
return Exts.MakeArray( Info.PipCount,
i => ( Player.Ore * Info.PipCount > i * Player.OreCapacity )
? Info.PipColor : PipType.Transparent );
}

View File

@@ -98,7 +98,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
return item;
};
var options = Graphics.Util.MakeArray(map.GetSpawnPoints().Length + 1, i => i).ToList();
var options = Exts.MakeArray(map.GetSpawnPoints().Length + 1, i => i).ToList();
dropdown.ShowDropDown("TEAM_DROPDOWN_TEMPLATE", 150, options, setupItem);
}