using System; using System.Runtime.CompilerServices; using UnityEngine.Scripting; using UnityEngine.Scripting.APIUpdating; namespace UnityEngine.AI { // Token: 0x020001B0 RID: 432 [MovedFrom("UnityEngine")] public static class NavMesh { // Token: 0x06001FB2 RID: 8114 RVA: 0x00025E1C File Offset: 0x0002401C [RequiredByNativeCode] private static void Internal_CallOnNavMeshPreUpdate() { if (NavMesh.onPreUpdate != null) { NavMesh.onPreUpdate(); } } // Token: 0x06001FB3 RID: 8115 RVA: 0x00025E34 File Offset: 0x00024034 public static bool Raycast(Vector3 sourcePosition, Vector3 targetPosition, out NavMeshHit hit, int areaMask) { return NavMesh.INTERNAL_CALL_Raycast(ref sourcePosition, ref targetPosition, out hit, areaMask); } // Token: 0x06001FB4 RID: 8116 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_Raycast(ref Vector3 sourcePosition, ref Vector3 targetPosition, out NavMeshHit hit, int areaMask); // Token: 0x06001FB5 RID: 8117 RVA: 0x00025E54 File Offset: 0x00024054 public static bool CalculatePath(Vector3 sourcePosition, Vector3 targetPosition, int areaMask, NavMeshPath path) { path.ClearCorners(); return NavMesh.CalculatePathInternal(sourcePosition, targetPosition, areaMask, path); } // Token: 0x06001FB6 RID: 8118 RVA: 0x00025E78 File Offset: 0x00024078 internal static bool CalculatePathInternal(Vector3 sourcePosition, Vector3 targetPosition, int areaMask, NavMeshPath path) { return NavMesh.INTERNAL_CALL_CalculatePathInternal(ref sourcePosition, ref targetPosition, areaMask, path); } // Token: 0x06001FB7 RID: 8119 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_CalculatePathInternal(ref Vector3 sourcePosition, ref Vector3 targetPosition, int areaMask, NavMeshPath path); // Token: 0x06001FB8 RID: 8120 RVA: 0x00025E98 File Offset: 0x00024098 public static bool FindClosestEdge(Vector3 sourcePosition, out NavMeshHit hit, int areaMask) { return NavMesh.INTERNAL_CALL_FindClosestEdge(ref sourcePosition, out hit, areaMask); } // Token: 0x06001FB9 RID: 8121 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_FindClosestEdge(ref Vector3 sourcePosition, out NavMeshHit hit, int areaMask); // Token: 0x06001FBA RID: 8122 RVA: 0x00025EB8 File Offset: 0x000240B8 public static bool SamplePosition(Vector3 sourcePosition, out NavMeshHit hit, float maxDistance, int areaMask) { return NavMesh.INTERNAL_CALL_SamplePosition(ref sourcePosition, out hit, maxDistance, areaMask); } // Token: 0x06001FBB RID: 8123 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_SamplePosition(ref Vector3 sourcePosition, out NavMeshHit hit, float maxDistance, int areaMask); // Token: 0x06001FBC RID: 8124 [Obsolete("Use SetAreaCost instead.")] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void SetLayerCost(int layer, float cost); // Token: 0x06001FBD RID: 8125 [Obsolete("Use GetAreaCost instead.")] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern float GetLayerCost(int layer); // Token: 0x06001FBE RID: 8126 [Obsolete("Use GetAreaFromName instead.")] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetNavMeshLayerFromName(string layerName); // Token: 0x06001FBF RID: 8127 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void SetAreaCost(int areaIndex, float cost); // Token: 0x06001FC0 RID: 8128 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern float GetAreaCost(int areaIndex); // Token: 0x06001FC1 RID: 8129 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetAreaFromName(string areaName); // Token: 0x06001FC2 RID: 8130 RVA: 0x00025ED8 File Offset: 0x000240D8 public static NavMeshTriangulation CalculateTriangulation() { return (NavMeshTriangulation)NavMesh.TriangulateInternal(); } // Token: 0x06001FC3 RID: 8131 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern object TriangulateInternal(); // Token: 0x06001FC4 RID: 8132 [Obsolete("use NavMesh.CalculateTriangulation () instead.")] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void Triangulate(out Vector3[] vertices, out int[] indices); // Token: 0x06001FC5 RID: 8133 [Obsolete("AddOffMeshLinks has no effect and is deprecated.")] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void AddOffMeshLinks(); // Token: 0x06001FC6 RID: 8134 [Obsolete("RestoreNavMesh has no effect and is deprecated.")] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void RestoreNavMesh(); // Token: 0x17000745 RID: 1861 // (get) Token: 0x06001FC7 RID: 8135 RVA: 0x00025EFC File Offset: 0x000240FC // (set) Token: 0x06001FC8 RID: 8136 RVA: 0x00025F18 File Offset: 0x00024118 public static float avoidancePredictionTime { get { return NavMesh.GetAvoidancePredictionTime(); } set { NavMesh.SetAvoidancePredictionTime(value); } } // Token: 0x06001FC9 RID: 8137 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern void SetAvoidancePredictionTime(float t); // Token: 0x06001FCA RID: 8138 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern float GetAvoidancePredictionTime(); // Token: 0x17000746 RID: 1862 // (get) Token: 0x06001FCB RID: 8139 RVA: 0x00025F24 File Offset: 0x00024124 // (set) Token: 0x06001FCC RID: 8140 RVA: 0x00025F40 File Offset: 0x00024140 public static int pathfindingIterationsPerFrame { get { return NavMesh.GetPathfindingIterationsPerFrame(); } set { NavMesh.SetPathfindingIterationsPerFrame(value); } } // Token: 0x06001FCD RID: 8141 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern void SetPathfindingIterationsPerFrame(int iter); // Token: 0x06001FCE RID: 8142 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern int GetPathfindingIterationsPerFrame(); // Token: 0x06001FCF RID: 8143 RVA: 0x00025F4C File Offset: 0x0002414C public static NavMeshDataInstance AddNavMeshData(NavMeshData navMeshData) { if (navMeshData == null) { throw new ArgumentNullException("navMeshData"); } return new NavMeshDataInstance { id = NavMesh.AddNavMeshDataInternal(navMeshData) }; } // Token: 0x06001FD0 RID: 8144 RVA: 0x00025F90 File Offset: 0x00024190 public static NavMeshDataInstance AddNavMeshData(NavMeshData navMeshData, Vector3 position, Quaternion rotation) { if (navMeshData == null) { throw new ArgumentNullException("navMeshData"); } return new NavMeshDataInstance { id = NavMesh.AddNavMeshDataTransformedInternal(navMeshData, position, rotation) }; } // Token: 0x06001FD1 RID: 8145 RVA: 0x00025FD4 File Offset: 0x000241D4 public static void RemoveNavMeshData(NavMeshDataInstance handle) { NavMesh.RemoveNavMeshDataInternal(handle.id); } // Token: 0x06001FD2 RID: 8146 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern bool IsValidNavMeshDataHandle(int handle); // Token: 0x06001FD3 RID: 8147 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern bool IsValidLinkHandle(int handle); // Token: 0x06001FD4 RID: 8148 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern Object InternalGetOwner(int dataID); // Token: 0x06001FD5 RID: 8149 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern bool InternalSetOwner(int dataID, int ownerID); // Token: 0x06001FD6 RID: 8150 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern Object InternalGetLinkOwner(int linkID); // Token: 0x06001FD7 RID: 8151 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern bool InternalSetLinkOwner(int linkID, int ownerID); // Token: 0x06001FD8 RID: 8152 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern int AddNavMeshDataInternal(NavMeshData navMeshData); // Token: 0x06001FD9 RID: 8153 RVA: 0x00025FE4 File Offset: 0x000241E4 internal static int AddNavMeshDataTransformedInternal(NavMeshData navMeshData, Vector3 position, Quaternion rotation) { return NavMesh.INTERNAL_CALL_AddNavMeshDataTransformedInternal(navMeshData, ref position, ref rotation); } // Token: 0x06001FDA RID: 8154 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern int INTERNAL_CALL_AddNavMeshDataTransformedInternal(NavMeshData navMeshData, ref Vector3 position, ref Quaternion rotation); // Token: 0x06001FDB RID: 8155 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern void RemoveNavMeshDataInternal(int handle); // Token: 0x06001FDC RID: 8156 RVA: 0x00026004 File Offset: 0x00024204 public static NavMeshLinkInstance AddLink(NavMeshLinkData link) { return new NavMeshLinkInstance { id = NavMesh.AddLinkInternal(link, Vector3.zero, Quaternion.identity) }; } // Token: 0x06001FDD RID: 8157 RVA: 0x0002603C File Offset: 0x0002423C public static NavMeshLinkInstance AddLink(NavMeshLinkData link, Vector3 position, Quaternion rotation) { return new NavMeshLinkInstance { id = NavMesh.AddLinkInternal(link, position, rotation) }; } // Token: 0x06001FDE RID: 8158 RVA: 0x0002606C File Offset: 0x0002426C public static void RemoveLink(NavMeshLinkInstance handle) { NavMesh.RemoveLinkInternal(handle.id); } // Token: 0x06001FDF RID: 8159 RVA: 0x0002607C File Offset: 0x0002427C internal static int AddLinkInternal(NavMeshLinkData link, Vector3 position, Quaternion rotation) { return NavMesh.INTERNAL_CALL_AddLinkInternal(ref link, ref position, ref rotation); } // Token: 0x06001FE0 RID: 8160 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern int INTERNAL_CALL_AddLinkInternal(ref NavMeshLinkData link, ref Vector3 position, ref Quaternion rotation); // Token: 0x06001FE1 RID: 8161 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal static extern void RemoveLinkInternal(int handle); // Token: 0x06001FE2 RID: 8162 RVA: 0x0002609C File Offset: 0x0002429C public static bool SamplePosition(Vector3 sourcePosition, out NavMeshHit hit, float maxDistance, NavMeshQueryFilter filter) { return NavMesh.SamplePositionFilter(sourcePosition, out hit, maxDistance, filter.agentTypeID, filter.areaMask); } // Token: 0x06001FE3 RID: 8163 RVA: 0x000260C8 File Offset: 0x000242C8 private static bool SamplePositionFilter(Vector3 sourcePosition, out NavMeshHit hit, float maxDistance, int type, int mask) { return NavMesh.INTERNAL_CALL_SamplePositionFilter(ref sourcePosition, out hit, maxDistance, type, mask); } // Token: 0x06001FE4 RID: 8164 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_SamplePositionFilter(ref Vector3 sourcePosition, out NavMeshHit hit, float maxDistance, int type, int mask); // Token: 0x06001FE5 RID: 8165 RVA: 0x000260EC File Offset: 0x000242EC public static bool FindClosestEdge(Vector3 sourcePosition, out NavMeshHit hit, NavMeshQueryFilter filter) { return NavMesh.FindClosestEdgeFilter(sourcePosition, out hit, filter.agentTypeID, filter.areaMask); } // Token: 0x06001FE6 RID: 8166 RVA: 0x00026118 File Offset: 0x00024318 private static bool FindClosestEdgeFilter(Vector3 sourcePosition, out NavMeshHit hit, int type, int mask) { return NavMesh.INTERNAL_CALL_FindClosestEdgeFilter(ref sourcePosition, out hit, type, mask); } // Token: 0x06001FE7 RID: 8167 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_FindClosestEdgeFilter(ref Vector3 sourcePosition, out NavMeshHit hit, int type, int mask); // Token: 0x06001FE8 RID: 8168 RVA: 0x00026138 File Offset: 0x00024338 public static bool Raycast(Vector3 sourcePosition, Vector3 targetPosition, out NavMeshHit hit, NavMeshQueryFilter filter) { return NavMesh.RaycastFilter(sourcePosition, targetPosition, out hit, filter.agentTypeID, filter.areaMask); } // Token: 0x06001FE9 RID: 8169 RVA: 0x00026164 File Offset: 0x00024364 private static bool RaycastFilter(Vector3 sourcePosition, Vector3 targetPosition, out NavMeshHit hit, int type, int mask) { return NavMesh.INTERNAL_CALL_RaycastFilter(ref sourcePosition, ref targetPosition, out hit, type, mask); } // Token: 0x06001FEA RID: 8170 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_RaycastFilter(ref Vector3 sourcePosition, ref Vector3 targetPosition, out NavMeshHit hit, int type, int mask); // Token: 0x06001FEB RID: 8171 RVA: 0x00026188 File Offset: 0x00024388 public static bool CalculatePath(Vector3 sourcePosition, Vector3 targetPosition, NavMeshQueryFilter filter, NavMeshPath path) { path.ClearCorners(); return NavMesh.CalculatePathFilterInternal(sourcePosition, targetPosition, path, filter.agentTypeID, filter.areaMask, filter.costs); } // Token: 0x06001FEC RID: 8172 RVA: 0x000261C0 File Offset: 0x000243C0 internal static bool CalculatePathFilterInternal(Vector3 sourcePosition, Vector3 targetPosition, NavMeshPath path, int type, int mask, float[] costs) { return NavMesh.INTERNAL_CALL_CalculatePathFilterInternal(ref sourcePosition, ref targetPosition, path, type, mask, costs); } // Token: 0x06001FED RID: 8173 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_CalculatePathFilterInternal(ref Vector3 sourcePosition, ref Vector3 targetPosition, NavMeshPath path, int type, int mask, float[] costs); // Token: 0x06001FEE RID: 8174 RVA: 0x000261E4 File Offset: 0x000243E4 public static NavMeshBuildSettings CreateSettings() { NavMeshBuildSettings navMeshBuildSettings; NavMesh.INTERNAL_CALL_CreateSettings(out navMeshBuildSettings); return navMeshBuildSettings; } // Token: 0x06001FEF RID: 8175 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_CreateSettings(out NavMeshBuildSettings value); // Token: 0x06001FF0 RID: 8176 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void RemoveSettings(int agentTypeID); // Token: 0x06001FF1 RID: 8177 RVA: 0x00026204 File Offset: 0x00024404 public static NavMeshBuildSettings GetSettingsByID(int agentTypeID) { NavMeshBuildSettings navMeshBuildSettings; NavMesh.INTERNAL_CALL_GetSettingsByID(agentTypeID, out navMeshBuildSettings); return navMeshBuildSettings; } // Token: 0x06001FF2 RID: 8178 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_GetSettingsByID(int agentTypeID, out NavMeshBuildSettings value); // Token: 0x06001FF3 RID: 8179 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetSettingsCount(); // Token: 0x06001FF4 RID: 8180 RVA: 0x00026224 File Offset: 0x00024424 public static NavMeshBuildSettings GetSettingsByIndex(int index) { NavMeshBuildSettings navMeshBuildSettings; NavMesh.INTERNAL_CALL_GetSettingsByIndex(index, out navMeshBuildSettings); return navMeshBuildSettings; } // Token: 0x06001FF5 RID: 8181 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_GetSettingsByIndex(int index, out NavMeshBuildSettings value); // Token: 0x06001FF6 RID: 8182 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern string GetSettingsNameFromID(int agentTypeID); // Token: 0x04000486 RID: 1158 public static NavMesh.OnNavMeshPreUpdate onPreUpdate; // Token: 0x04000487 RID: 1159 public const int AllAreas = -1; // Token: 0x020001B1 RID: 433 // (Invoke) Token: 0x06001FF8 RID: 8184 public delegate void OnNavMeshPreUpdate(); } }