/// <summary> /// Initializes the PathingMgr by loading all available navmeshes /// </summary> /// <returns></returns> public bool Init() { try { var dummy = IntPtr.Zero; LoadNavMesh("this file does not exists!", ref dummy, ref dummy); } catch (Exception e) { log.ErrorFormat("The current process is a {0} bit process!", (IntPtr.Size == 8 ? "64bit" : "32bit")); log.ErrorFormat("PathingMgr did not find the ReUth.dll! Starting server anyway but pathing will not work! Error message: {0}", e.ToString()); return(false); } _navmeshPtrs = new Dictionary <ushort, IntPtr[]>(); foreach (var zone in WorldMgr.GetAllZones()) { LoadNavMesh(zone); } return(true); }