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

95 lines
1.9 KiB
C#

using System;
namespace UnityEngine.AI
{
// Token: 0x020001B8 RID: 440
public struct NavMeshQueryFilter
{
// Token: 0x1700075D RID: 1885
// (get) Token: 0x0600202D RID: 8237 RVA: 0x00026698 File Offset: 0x00024898
internal float[] costs
{
get
{
return this.m_AreaCost;
}
}
// Token: 0x1700075E RID: 1886
// (get) Token: 0x0600202E RID: 8238 RVA: 0x000266B4 File Offset: 0x000248B4
// (set) Token: 0x0600202F RID: 8239 RVA: 0x000266D0 File Offset: 0x000248D0
public int areaMask
{
get
{
return this.m_AreaMask;
}
set
{
this.m_AreaMask = value;
}
}
// Token: 0x1700075F RID: 1887
// (get) Token: 0x06002030 RID: 8240 RVA: 0x000266DC File Offset: 0x000248DC
// (set) Token: 0x06002031 RID: 8241 RVA: 0x000266F8 File Offset: 0x000248F8
public int agentTypeID
{
get
{
return this.m_AgentTypeID;
}
set
{
this.m_AgentTypeID = value;
}
}
// Token: 0x06002032 RID: 8242 RVA: 0x00026704 File Offset: 0x00024904
public float GetAreaCost(int areaIndex)
{
float num;
if (this.m_AreaCost == null)
{
if (areaIndex < 0 || areaIndex >= 32)
{
string text = string.Format("The valid range is [0:{0}]", 31);
throw new IndexOutOfRangeException(text);
}
num = 1f;
}
else
{
num = this.m_AreaCost[areaIndex];
}
return num;
}
// Token: 0x06002033 RID: 8243 RVA: 0x00026764 File Offset: 0x00024964
public void SetAreaCost(int areaIndex, float cost)
{
if (this.m_AreaCost == null)
{
this.m_AreaCost = new float[32];
for (int i = 0; i < 32; i++)
{
this.m_AreaCost[i] = 1f;
}
}
this.m_AreaCost[areaIndex] = cost;
}
// Token: 0x04000499 RID: 1177
private const int AREA_COST_ELEMENT_COUNT = 32;
// Token: 0x0400049A RID: 1178
private int m_AreaMask;
// Token: 0x0400049B RID: 1179
private int m_AgentTypeID;
// Token: 0x0400049C RID: 1180
private float[] m_AreaCost;
}
}