Files
2026-06-04 11:42:34 +02:00

666 lines
18 KiB
C#

using System;
using System.Runtime.CompilerServices;
using UnityEngine.Scripting;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.AI
{
// Token: 0x020001BA RID: 442
[MovedFrom("UnityEngine")]
public sealed class NavMeshAgent : Behaviour
{
// Token: 0x06002035 RID: 8245 RVA: 0x000267C0 File Offset: 0x000249C0
public bool SetDestination(Vector3 target)
{
return NavMeshAgent.INTERNAL_CALL_SetDestination(this, ref target);
}
// Token: 0x06002036 RID: 8246
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool INTERNAL_CALL_SetDestination(NavMeshAgent self, ref Vector3 target);
// Token: 0x17000760 RID: 1888
// (get) Token: 0x06002037 RID: 8247 RVA: 0x000267E0 File Offset: 0x000249E0
// (set) Token: 0x06002038 RID: 8248 RVA: 0x00026800 File Offset: 0x00024A00
public Vector3 destination
{
get
{
Vector3 vector;
this.INTERNAL_get_destination(out vector);
return vector;
}
set
{
this.INTERNAL_set_destination(ref value);
}
}
// Token: 0x06002039 RID: 8249
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_destination(out Vector3 value);
// Token: 0x0600203A RID: 8250
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_set_destination(ref Vector3 value);
// Token: 0x17000761 RID: 1889
// (get) Token: 0x0600203B RID: 8251
// (set) Token: 0x0600203C RID: 8252
public extern float stoppingDistance
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000762 RID: 1890
// (get) Token: 0x0600203D RID: 8253 RVA: 0x0002680C File Offset: 0x00024A0C
// (set) Token: 0x0600203E RID: 8254 RVA: 0x0002682C File Offset: 0x00024A2C
public Vector3 velocity
{
get
{
Vector3 vector;
this.INTERNAL_get_velocity(out vector);
return vector;
}
set
{
this.INTERNAL_set_velocity(ref value);
}
}
// Token: 0x0600203F RID: 8255
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_velocity(out Vector3 value);
// Token: 0x06002040 RID: 8256
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_set_velocity(ref Vector3 value);
// Token: 0x17000763 RID: 1891
// (get) Token: 0x06002041 RID: 8257 RVA: 0x00026838 File Offset: 0x00024A38
// (set) Token: 0x06002042 RID: 8258 RVA: 0x00026858 File Offset: 0x00024A58
public Vector3 nextPosition
{
get
{
Vector3 vector;
this.INTERNAL_get_nextPosition(out vector);
return vector;
}
set
{
this.INTERNAL_set_nextPosition(ref value);
}
}
// Token: 0x06002043 RID: 8259
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_nextPosition(out Vector3 value);
// Token: 0x06002044 RID: 8260
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_set_nextPosition(ref Vector3 value);
// Token: 0x17000764 RID: 1892
// (get) Token: 0x06002045 RID: 8261 RVA: 0x00026864 File Offset: 0x00024A64
public Vector3 steeringTarget
{
get
{
Vector3 vector;
this.INTERNAL_get_steeringTarget(out vector);
return vector;
}
}
// Token: 0x06002046 RID: 8262
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_steeringTarget(out Vector3 value);
// Token: 0x17000765 RID: 1893
// (get) Token: 0x06002047 RID: 8263 RVA: 0x00026884 File Offset: 0x00024A84
public Vector3 desiredVelocity
{
get
{
Vector3 vector;
this.INTERNAL_get_desiredVelocity(out vector);
return vector;
}
}
// Token: 0x06002048 RID: 8264
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_desiredVelocity(out Vector3 value);
// Token: 0x17000766 RID: 1894
// (get) Token: 0x06002049 RID: 8265
public extern float remainingDistance
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x17000767 RID: 1895
// (get) Token: 0x0600204A RID: 8266
// (set) Token: 0x0600204B RID: 8267
public extern float baseOffset
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000768 RID: 1896
// (get) Token: 0x0600204C RID: 8268
public extern bool isOnOffMeshLink
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x0600204D RID: 8269
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void ActivateCurrentOffMeshLink(bool activated);
// Token: 0x17000769 RID: 1897
// (get) Token: 0x0600204E RID: 8270 RVA: 0x000268A4 File Offset: 0x00024AA4
public OffMeshLinkData currentOffMeshLinkData
{
get
{
return this.GetCurrentOffMeshLinkDataInternal();
}
}
// Token: 0x0600204F RID: 8271
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern OffMeshLinkData GetCurrentOffMeshLinkDataInternal();
// Token: 0x1700076A RID: 1898
// (get) Token: 0x06002050 RID: 8272 RVA: 0x000268C0 File Offset: 0x00024AC0
public OffMeshLinkData nextOffMeshLinkData
{
get
{
return this.GetNextOffMeshLinkDataInternal();
}
}
// Token: 0x06002051 RID: 8273
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern OffMeshLinkData GetNextOffMeshLinkDataInternal();
// Token: 0x06002052 RID: 8274
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void CompleteOffMeshLink();
// Token: 0x1700076B RID: 1899
// (get) Token: 0x06002053 RID: 8275
// (set) Token: 0x06002054 RID: 8276
public extern bool autoTraverseOffMeshLink
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700076C RID: 1900
// (get) Token: 0x06002055 RID: 8277
// (set) Token: 0x06002056 RID: 8278
public extern bool autoBraking
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700076D RID: 1901
// (get) Token: 0x06002057 RID: 8279
// (set) Token: 0x06002058 RID: 8280
public extern bool autoRepath
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700076E RID: 1902
// (get) Token: 0x06002059 RID: 8281
public extern bool hasPath
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x1700076F RID: 1903
// (get) Token: 0x0600205A RID: 8282
public extern bool pathPending
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x17000770 RID: 1904
// (get) Token: 0x0600205B RID: 8283
public extern bool isPathStale
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x17000771 RID: 1905
// (get) Token: 0x0600205C RID: 8284
public extern NavMeshPathStatus pathStatus
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x17000772 RID: 1906
// (get) Token: 0x0600205D RID: 8285 RVA: 0x000268DC File Offset: 0x00024ADC
public Vector3 pathEndPosition
{
get
{
Vector3 vector;
this.INTERNAL_get_pathEndPosition(out vector);
return vector;
}
}
// Token: 0x0600205E RID: 8286
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_pathEndPosition(out Vector3 value);
// Token: 0x0600205F RID: 8287 RVA: 0x000268FC File Offset: 0x00024AFC
public bool Warp(Vector3 newPosition)
{
return NavMeshAgent.INTERNAL_CALL_Warp(this, ref newPosition);
}
// Token: 0x06002060 RID: 8288
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool INTERNAL_CALL_Warp(NavMeshAgent self, ref Vector3 newPosition);
// Token: 0x06002061 RID: 8289 RVA: 0x0002691C File Offset: 0x00024B1C
public void Move(Vector3 offset)
{
NavMeshAgent.INTERNAL_CALL_Move(this, ref offset);
}
// Token: 0x06002062 RID: 8290
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Move(NavMeshAgent self, ref Vector3 offset);
// Token: 0x06002063 RID: 8291 RVA: 0x00026928 File Offset: 0x00024B28
[Obsolete("Set isStopped to true instead")]
public void Stop()
{
this.StopInternal();
}
// Token: 0x06002064 RID: 8292
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern void StopInternal();
// Token: 0x06002065 RID: 8293 RVA: 0x00026934 File Offset: 0x00024B34
[Obsolete("Set isStopped to true instead")]
public void Stop(bool stopUpdates)
{
this.StopInternal();
}
// Token: 0x06002066 RID: 8294
[Obsolete("Set isStopped to false instead")]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void Resume();
// Token: 0x17000773 RID: 1907
// (get) Token: 0x06002067 RID: 8295
// (set) Token: 0x06002068 RID: 8296
public extern bool isStopped
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x06002069 RID: 8297
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void ResetPath();
// Token: 0x0600206A RID: 8298
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool SetPath(NavMeshPath path);
// Token: 0x17000774 RID: 1908
// (get) Token: 0x0600206B RID: 8299 RVA: 0x00026940 File Offset: 0x00024B40
// (set) Token: 0x0600206C RID: 8300 RVA: 0x00026964 File Offset: 0x00024B64
public NavMeshPath path
{
get
{
NavMeshPath navMeshPath = new NavMeshPath();
this.CopyPathTo(navMeshPath);
return navMeshPath;
}
set
{
if (value == null)
{
throw new NullReferenceException();
}
this.SetPath(value);
}
}
// Token: 0x0600206D RID: 8301
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern void CopyPathTo(NavMeshPath path);
// Token: 0x0600206E RID: 8302
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool FindClosestEdge(out NavMeshHit hit);
// Token: 0x0600206F RID: 8303 RVA: 0x0002697C File Offset: 0x00024B7C
public bool Raycast(Vector3 targetPosition, out NavMeshHit hit)
{
return NavMeshAgent.INTERNAL_CALL_Raycast(this, ref targetPosition, out hit);
}
// Token: 0x06002070 RID: 8304
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool INTERNAL_CALL_Raycast(NavMeshAgent self, ref Vector3 targetPosition, out NavMeshHit hit);
// Token: 0x06002071 RID: 8305 RVA: 0x0002699C File Offset: 0x00024B9C
public bool CalculatePath(Vector3 targetPosition, NavMeshPath path)
{
path.ClearCorners();
return this.CalculatePathInternal(targetPosition, path);
}
// Token: 0x06002072 RID: 8306 RVA: 0x000269C0 File Offset: 0x00024BC0
private bool CalculatePathInternal(Vector3 targetPosition, NavMeshPath path)
{
return NavMeshAgent.INTERNAL_CALL_CalculatePathInternal(this, ref targetPosition, path);
}
// Token: 0x06002073 RID: 8307
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool INTERNAL_CALL_CalculatePathInternal(NavMeshAgent self, ref Vector3 targetPosition, NavMeshPath path);
// Token: 0x06002074 RID: 8308
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool SamplePathPosition(int areaMask, float maxDistance, out NavMeshHit hit);
// Token: 0x06002075 RID: 8309
[Obsolete("Use SetAreaCost instead.")]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SetLayerCost(int layer, float cost);
// Token: 0x06002076 RID: 8310
[Obsolete("Use GetAreaCost instead.")]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern float GetLayerCost(int layer);
// Token: 0x06002077 RID: 8311
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SetAreaCost(int areaIndex, float areaCost);
// Token: 0x06002078 RID: 8312
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern float GetAreaCost(int areaIndex);
// Token: 0x17000775 RID: 1909
// (get) Token: 0x06002079 RID: 8313 RVA: 0x000269E0 File Offset: 0x00024BE0
public Object navMeshOwner
{
get
{
return this.GetOwnerInternal();
}
}
// Token: 0x17000776 RID: 1910
// (get) Token: 0x0600207A RID: 8314
// (set) Token: 0x0600207B RID: 8315
public extern int agentTypeID
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x0600207C RID: 8316
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Object GetOwnerInternal();
// Token: 0x17000777 RID: 1911
// (get) Token: 0x0600207D RID: 8317
// (set) Token: 0x0600207E RID: 8318
[Obsolete("Use areaMask instead.")]
public extern int walkableMask
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000778 RID: 1912
// (get) Token: 0x0600207F RID: 8319
// (set) Token: 0x06002080 RID: 8320
public extern int areaMask
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000779 RID: 1913
// (get) Token: 0x06002081 RID: 8321
// (set) Token: 0x06002082 RID: 8322
public extern float speed
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700077A RID: 1914
// (get) Token: 0x06002083 RID: 8323
// (set) Token: 0x06002084 RID: 8324
public extern float angularSpeed
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700077B RID: 1915
// (get) Token: 0x06002085 RID: 8325
// (set) Token: 0x06002086 RID: 8326
public extern float acceleration
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700077C RID: 1916
// (get) Token: 0x06002087 RID: 8327
// (set) Token: 0x06002088 RID: 8328
public extern bool updatePosition
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700077D RID: 1917
// (get) Token: 0x06002089 RID: 8329
// (set) Token: 0x0600208A RID: 8330
public extern bool updateRotation
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700077E RID: 1918
// (get) Token: 0x0600208B RID: 8331
// (set) Token: 0x0600208C RID: 8332
public extern bool updateUpAxis
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x1700077F RID: 1919
// (get) Token: 0x0600208D RID: 8333
// (set) Token: 0x0600208E RID: 8334
public extern float radius
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000780 RID: 1920
// (get) Token: 0x0600208F RID: 8335
// (set) Token: 0x06002090 RID: 8336
public extern float height
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000781 RID: 1921
// (get) Token: 0x06002091 RID: 8337
// (set) Token: 0x06002092 RID: 8338
public extern ObstacleAvoidanceType obstacleAvoidanceType
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000782 RID: 1922
// (get) Token: 0x06002093 RID: 8339
// (set) Token: 0x06002094 RID: 8340
public extern int avoidancePriority
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x17000783 RID: 1923
// (get) Token: 0x06002095 RID: 8341
public extern bool isOnNavMesh
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
}
}