Ejemplo n.º 1
0
 public static bool TryFindNearestSafeWardSpot(Vector3 cursorPosition, out WardSpot outWardSpot)
 {
     foreach (WardSpot wardSpot in WardSpots.Where(x => x.IsSnapWard))
     {
         if (wardSpot.MagneticPosition.IsInRange(cursorPosition, Config.Properties.GetData<int>("WardSnapRadius")))
         {
             outWardSpot = wardSpot;
             return true;
         }
     }
     outWardSpot = null;
     return false;
 }
Ejemplo n.º 2
0
 public static bool TryFindNearestWardSpot(Vector3 cursorPosition, out WardSpot wardSpot)
 {
     foreach (WardSpot wardPosition in WardSpots)
     {
         if (wardPosition.MagneticPosition.IsInRange(cursorPosition, Config.Properties.GetData<int>("WardSnapRadius")) && Player.IsInRange(wardPosition.MagneticPosition, 650))
         {
             wardSpot = wardPosition;
             return true;
         }
     }
     wardSpot = null;
     return false;
 }