コード例 #1
0
ファイル: PathFinder.cs プロジェクト: zneel/TheNoobBot
 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));
 }