Moved: AutoAttack key handling out of core => RA

Added: AttackMoveInteraction to RA & CNC rules
This commit is contained in:
geckosoft
2010-11-10 07:10:13 +01:00
committed by Bob
parent ebca421856
commit 5608756a24
5 changed files with 36 additions and 12 deletions

View File

@@ -142,20 +142,8 @@ namespace OpenRA.Widgets
handled = (t.KeyPressed(world.WorldActor, e)) ? true : handled;
if (handled) return true;
if (e.KeyChar == 'a')
{
StartAttackMoveOrder();
return true;
}
}
return false;
}
public void StartAttackMoveOrder()
{
if (world.Selection.Actors.Count() > 0)
world.OrderGenerator = new GenericSelectTarget(world.Selection.Actors, "AttackMove", "attackmove");
}
IEnumerable<Actor> SelectActorsInBox(World world, float2 a, float2 b)