public UnitsInRange ( CPos xy ) : IEnumerable |
||
xy | CPos | |
return | IEnumerable |
protected override IEnumerable <Order> OrderInner(World world, CPos cell, int2 worldPixel, MouseInput mi) { world.CancelInputMode(); if (mi.Button == MouseButton.Left && power.UnitsInRange(cell).Any()) { yield return new Order(order, manager.Self, Target.FromCell(world, cell), false) { SuppressVisualFeedback = true } } ; }
public IEnumerable <Order> Order(World world, CPos cell, int2 worldPixel, MouseInput mi) { world.CancelInputMode(); if (mi.Button == MouseButton.Left && power.UnitsInRange(cell).Any()) { yield return new Order(order, manager.Self, false) { TargetLocation = cell, SuppressVisualFeedback = true } } ; }