Add Map.FindActorsInCircle and ...InBox, plus related shortcuts

This commit is contained in:
Oliver Brakmann
2014-01-27 23:27:40 +01:00
parent 5322096dc4
commit b3323869cb
2 changed files with 54 additions and 0 deletions

View File

@@ -330,5 +330,17 @@ namespace OpenRA.Mods.RA.Scripting
{
return mapActors[actorName];
}
[LuaGlobal]
public Actor[] FindActorsInBox(WPos topLeft, WPos bottomRight)
{
return world.FindActorsInBox(topLeft, bottomRight).ToArray();
}
[LuaGlobal]
public Actor[] FindActorsInCircle(WPos location, WRange radius)
{
return world.FindActorsInCircle(location, radius).ToArray();
}
}
}