Beispiel #1
0
 /// <summary>
 /// </summary>
 /// <param name="point"></param>
 /// <param name="strict"></param>
 /// <returns></returns>
 public static float GetZPosition(Point point, bool strict = false)
 {
     try
     {
         if (_pather == null)
         {
             _pather = new Pather(Usefuls.ContinentNameMpq);
         }
         if (_pather.Continent != Usefuls.ContinentNameMpq)
         {
             _pather.Dispose();
             _pather = new Pather(Usefuls.ContinentNameMpq);
         }
         return(_pather.GetZ(point, strict));
     }
     catch (Exception exception)
     {
         Logging.WriteError("GetZPosition(Point point): " + exception);
     }
     return(0);
 }