Пример #1
0
 public static Point GetClosestPointOnTile(Point position, out bool success)
 {
     if (_pather == null)
     {
         _pather = new Pather(Usefuls.ContinentNameMpq);
     }
     if (_pather.Continent != Usefuls.ContinentNameMpq)
     {
         _pather.Dispose();
         _pather = new Pather(Usefuls.ContinentNameMpq);
     }
     return(_pather.GetClosestPointOnTile(position, out success));
 }