invuln moved to mod

This commit is contained in:
Chris Forbes
2010-01-29 19:48:51 +13:00
parent 84d2a01a69
commit d043f6690d
8 changed files with 23 additions and 17 deletions

View File

@@ -52,6 +52,12 @@ namespace OpenRa
world.TileSet.GetWalkability(world.Map.MapTiles[a.X, a.Y])) < double.PositiveInfinity;
}
public static IEnumerable<Actor> FindUnitsAtMouse(this World world, int2 mouseLocation)
{
var loc = mouseLocation + Game.viewport.Location;
return FindUnits(world, loc, loc);
}
public static IEnumerable<Actor> FindUnits(this World world, float2 a, float2 b)
{
var min = float2.Min(a, b);