UnitsInRange() публичный Метод

public UnitsInRange ( CPos xy ) : IEnumerable
xy CPos
Результат 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
                }
     }
     ;
 }
Пример #2
0
 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
                }
     }
     ;
 }