Ejemplo n.º 1
0
 public static NavMeshData BuildNavMeshData(NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds, Vector3 position, Quaternion rotation)
 {
     if (sources == null)
     {
         throw new ArgumentNullException("sources");
     }
     return(BuildNavMeshData(buildSettings, sources, localBounds, position, rotation, default(NavMeshBuildDebugSettings)));
 }
Ejemplo n.º 2
0
 public static bool UpdateNavMeshData(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds)
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     if (sources == null)
     {
         throw new ArgumentNullException("sources");
     }
     return(UpdateNavMeshData(data, buildSettings, sources, localBounds, default(NavMeshBuildDebugSettings)));
 }
Ejemplo n.º 3
0
 private static bool UpdateNavMeshData(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds, NavMeshBuildDebugSettings debug)
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     if (sources == null)
     {
         throw new ArgumentNullException("sources");
     }
     return(UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds, debug));
 }
Ejemplo n.º 4
0
 public static AsyncOperation UpdateNavMeshDataAsync(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds)
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     if (sources == null)
     {
         throw new ArgumentNullException("sources");
     }
     return(NavMeshBuilder.UpdateNavMeshDataAsyncListInternal(data, buildSettings, sources, localBounds));
 }
Ejemplo n.º 5
0
        public static NavMeshData BuildNavMeshData(NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds, Vector3 position, Quaternion rotation)
        {
            if (sources == null)
            {
                throw new ArgumentNullException("sources");
            }
            NavMeshData navMeshData = new NavMeshData(buildSettings.agentTypeID);

            navMeshData.position = position;
            navMeshData.rotation = rotation;
            NavMeshBuilder.UpdateNavMeshDataListInternal(navMeshData, buildSettings, sources, localBounds);
            return(navMeshData);
        }
        // Immediate NavMeshData updating
        public static bool UpdateNavMeshData(
            NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data));
            }
            if (sources == null)
            {
                throw new ArgumentNullException(nameof(sources));
            }

            return(UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds));
        }
        public static bool UpdateNavMeshData(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds)
        {
            bool flag = data == null;

            if (flag)
            {
                throw new ArgumentNullException("data");
            }
            bool flag2 = sources == null;

            if (flag2)
            {
                throw new ArgumentNullException("sources");
            }
            return(NavMeshBuilder.UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds));
        }
        // Immediate NavMeshData building
        public static NavMeshData BuildNavMeshData(
            NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources,
            Bounds localBounds, Vector3 position, Quaternion rotation)
        {
            if (sources == null)
            {
                throw new ArgumentNullException(nameof(sources));
            }

            var data = new NavMeshData(buildSettings.agentTypeID)
            {
                position = position,
                rotation = rotation
            };

            UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds);
            return(data);
        }
Ejemplo n.º 9
0
        public NavMeshBuildSettings GetBuildSettings()
        {
            NavMeshBuildSettings settingsByID = NavMesh.GetSettingsByID(this.m_AgentTypeID);

            if (settingsByID.agentTypeID == -1)
            {
                Debug.LogWarning("No build settings for agent type ID " + this.agentTypeID, this);
                settingsByID.agentTypeID = this.m_AgentTypeID;
            }
            if (this.overrideTileSize)
            {
                settingsByID.overrideTileSize = true;
                settingsByID.tileSize         = this.tileSize;
            }
            if (this.overrideVoxelSize)
            {
                settingsByID.overrideVoxelSize = true;
                settingsByID.voxelSize         = this.voxelSize;
            }
            return(settingsByID);
        }
Ejemplo n.º 10
0
        public NavMeshBuildSettings GetBuildSettings()
        {
            NavMeshBuildSettings settingsById = NavMesh.GetSettingsByID(this.m_AgentTypeID);

            if (((NavMeshBuildSettings) ref settingsById).get_agentTypeID() == -1)
            {
                Debug.LogWarning((object)("No build settings for agent type ID " + (object)this.agentTypeID), (Object)this);
                ((NavMeshBuildSettings) ref settingsById).set_agentTypeID(this.m_AgentTypeID);
            }
            if (this.overrideTileSize)
            {
                ((NavMeshBuildSettings) ref settingsById).set_overrideTileSize(true);
                ((NavMeshBuildSettings) ref settingsById).set_tileSize(this.tileSize);
            }
            if (this.overrideVoxelSize)
            {
                ((NavMeshBuildSettings) ref settingsById).set_overrideVoxelSize(true);
                ((NavMeshBuildSettings) ref settingsById).set_voxelSize(this.voxelSize);
            }
            return(settingsById);
        }
Ejemplo n.º 11
0
 private static extern void INTERNAL_CALL_GetSettingsByIndex(int index, out NavMeshBuildSettings value);
Ejemplo n.º 12
0
 private static extern void INTERNAL_CALL_CreateSettings(out NavMeshBuildSettings value);
Ejemplo n.º 13
0
 private static extern void INTERNAL_CALL_GetSettingsByID(int agentTypeID, out NavMeshBuildSettings value);
Ejemplo n.º 14
0
 private static string[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds)
 {
     return(NavMeshBuildSettings.INTERNAL_CALL_InternalValidationReport(ref buildSettings, ref buildBounds));
 }
Ejemplo n.º 15
0
 private static extern string[] INTERNAL_CALL_InternalValidationReport(ref NavMeshBuildSettings buildSettings, ref Bounds buildBounds);
Ejemplo n.º 16
0
 private static extern bool INTERNAL_CALL_UpdateNavMeshDataListInternal(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
Ejemplo n.º 17
0
 private static extern void GetSettingsByIndex_Injected(int index, out NavMeshBuildSettings ret);
 private static extern AsyncOperation UpdateNavMeshDataAsyncListInternal_Injected(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
 private static extern bool UpdateNavMeshDataListInternal_Injected(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
Ejemplo n.º 20
0
 private static extern void CreateSettings_Injected(out NavMeshBuildSettings ret);
Ejemplo n.º 21
0
 private static extern AsyncOperation INTERNAL_CALL_UpdateNavMeshDataAsyncListInternal(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds, ref NavMeshBuildDebugSettings debug);
 static extern String[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds);
 private static extern string[] InternalValidationReport_Injected(ref NavMeshBuildSettings buildSettings, ref Bounds buildBounds);
 private static string[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds)
 {
     return(NavMeshBuildSettings.InternalValidationReport_Injected(ref buildSettings, ref buildBounds));
 }
 static extern bool UpdateNavMeshDataListInternal(
     NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds);
 private static AsyncOperation UpdateNavMeshDataAsyncListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds)
 {
     return(NavMeshBuilder.UpdateNavMeshDataAsyncListInternal_Injected(data, ref buildSettings, sources, ref localBounds));
 }
Ejemplo n.º 27
0
 private static bool UpdateNavMeshDataListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds)
 {
     return(NavMeshBuilder.INTERNAL_CALL_UpdateNavMeshDataListInternal(data, ref buildSettings, sources, ref localBounds));
 }
Ejemplo n.º 28
0
 public string[] ValidationReport(Bounds buildBounds)
 {
     return(NavMeshBuildSettings.InternalValidationReport(this, buildBounds));
 }
Ejemplo n.º 29
0
 private static AsyncOperation UpdateNavMeshDataAsyncListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds, NavMeshBuildDebugSettings debug)
 {
     return(INTERNAL_CALL_UpdateNavMeshDataAsyncListInternal(data, ref buildSettings, sources, ref localBounds, ref debug));
 }
Ejemplo n.º 30
0
 private static extern void GetSettingsByID_Injected(int agentTypeID, out NavMeshBuildSettings ret);