Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/EnemyPatrolNavMeshRegionPath.cs
2026-04-08 23:40:05 +02:00

204 lines
8.2 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Photon.Pun;
using UnityEngine;
// Token: 0x02000290 RID: 656
[Token(Token = "0x2000290")]
[RequireComponent(typeof(PhotonView))]
[StructLayout(3)]
public class EnemyPatrolNavMeshRegionPath : EnemyPatrol
{
// Token: 0x0600134E RID: 4942 RVA: 0x00051318 File Offset: 0x0004F518
[Token(Token = "0x600134E")]
[Address(RVA = "0x1526480", Offset = "0x1524E80", VA = "0x181526480", Slot = "15")]
public override bool HasReachedTarget(Vector3 PJBCOJLDFMH, Vector3 JJGDNPNBINJ)
{
/*
An exception occurred when decompiling this method (0600134E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean EnemyPatrolNavMeshRegionPath::HasReachedTarget(UnityEngine.Vector3,UnityEngine.Vector3)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:float32(var_1_08, ldfld:float32(Vector3::z, ldloc:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](JJGDNPNBINJ)))
stloc:float32(var_2_0F, ldfld:float32(Vector3::z, ldloc:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](PJBCOJLDFMH)))
stloc:float32(var_4_16, ldfld:float32(Vector3::z, ldloc:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](var_3)))
stloc:float32(var_5_1E, ldfld:float32(EnemyPatrolNavMeshRegionPath::nodeRadius, ldloc:EnemyPatrolNavMeshRegionPath(this)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600134F RID: 4943 RVA: 0x00051344 File Offset: 0x0004F544
[Token(Token = "0x600134F")]
[Address(RVA = "0x1526470", Offset = "0x1524E70", VA = "0x181526470", Slot = "16")]
public override bool HasFinishedPatrol(int PPGFPOCGJAN)
{
return this.pathNodes == (ulong)0L;
}
// Token: 0x06001350 RID: 4944 RVA: 0x0005135C File Offset: 0x0004F55C
[Token(Token = "0x6001350")]
[Address(RVA = "0x1526B40", Offset = "0x1525540", VA = "0x181526B40", Slot = "17")]
public override bool TryGetNextTarget(int HDANABPONGB, out int MMDNOCLDKFN, out Vector3 CMJAMJEHJLG)
{
NavMeshRegion[] array = this.pathNodes;
if (array != 0 && array.Length != 0)
{
int num = array.Length - 1;
int num2 = HDANABPONGB + 1;
int num3 = 0;
int num4 = Mathf.Clamp(num2, num3, num);
if (!this.pathNodes[num4].TryGetRandomPoint(out CMJAMJEHJLG))
{
MMDNOCLDKFN.m_value = HDANABPONGB;
}
MMDNOCLDKFN.m_value = num4;
}
Transform transform = base.transform;
Vector3 vector;
float z = vector.z;
CMJAMJEHJLG.z = z;
throw new NullReferenceException();
}
// Token: 0x06001351 RID: 4945 RVA: 0x000513DC File Offset: 0x0004F5DC
[Token(Token = "0x6001351")]
[Address(RVA = "0x1526360", Offset = "0x1524D60", VA = "0x181526360", Slot = "18")]
public override Vector3 GetGizmoPosition()
{
bool flag;
if (flag)
{
Vector3 vector;
float z = vector.z;
}
throw new NullReferenceException();
}
// Token: 0x06001352 RID: 4946 RVA: 0x000513FC File Offset: 0x0004F5FC
[Token(Token = "0x6001352")]
[Address(RVA = "0x1526550", Offset = "0x1524F50", VA = "0x181526550")]
private void OnDrawGizmos()
{
NavMeshRegion[] array = this.pathNodes;
if (array != 0)
{
int length = array.Length;
if (length != 0)
{
if (length == 1)
{
NavMeshRegion navMeshRegion = array[0];
int num = 0;
if (navMeshRegion != num)
{
NavMeshRegion navMeshRegion2 = this.pathNodes[0];
Color eekbmcifbdk = EnemyPatrolNavMeshRegionPath.EEKBMCIFBDK;
navMeshRegion2.DrawGizmos(eekbmcifbdk);
return;
}
}
int i = this.pathNodes.Length;
while (i <= 0)
{
}
int length2 = this.pathNodes.Length;
int num2 = 0;
NavMeshRegion navMeshRegion3;
if (!(navMeshRegion3 == num2))
{
int num3 = 0;
NavMeshRegion navMeshRegion4;
if (!(navMeshRegion4 == num3))
{
Color red = Color.red;
NavMeshRegion[] array2 = this.pathNodes;
NavMeshRegion navMeshRegion5;
Transform transform = navMeshRegion5.transform;
Vector3 vector;
float z = vector.z;
NavMeshRegion[] array3 = this.pathNodes;
NavMeshRegion navMeshRegion6;
Transform transform2 = navMeshRegion6.transform;
Vector3 vector2;
float z2 = vector2.z;
NavMeshRegion[] array4 = this.pathNodes;
Color eekbmcifbdk2 = EnemyPatrolNavMeshRegionPath.EEKBMCIFBDK;
NavMeshRegion navMeshRegion7;
navMeshRegion7.DrawGizmos(eekbmcifbdk2);
}
}
int length3 = this.pathNodes.Length;
Color hgkdajjdajl = EnemyPatrolNavMeshRegionPath.HGKDAJJDAJL;
throw new NullReferenceException();
}
}
}
// Token: 0x06001353 RID: 4947 RVA: 0x00051504 File Offset: 0x0004F704
[Token(Token = "0x6001353")]
[Address(RVA = "0x15269F0", Offset = "0x15253F0", VA = "0x1815269F0")]
private void PCODAHIMMBD(NavMeshRegion FKGCMPGAIAP, NavMeshRegion KOFMGJJCPPB)
{
Color red = Color.red;
Transform transform = FKGCMPGAIAP.transform;
Vector3 vector;
float z = vector.z;
Transform transform2 = KOFMGJJCPPB.transform;
Vector3 vector2;
float z2 = vector2.z;
Color eekbmcifbdk = EnemyPatrolNavMeshRegionPath.EEKBMCIFBDK;
FKGCMPGAIAP.DrawGizmos(eekbmcifbdk);
}
// Token: 0x06001354 RID: 4948 RVA: 0x0005154C File Offset: 0x0004F74C
[Token(Token = "0x6001354")]
[Address(RVA = "0x1526D40", Offset = "0x1525740", VA = "0x181526D40")]
public EnemyPatrolNavMeshRegionPath()
{
}
// Token: 0x06001355 RID: 4949 RVA: 0x0005156C File Offset: 0x0004F76C
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6001355")]
[Address(RVA = "0x1526C70", Offset = "0x1525670", VA = "0x181526C70")]
static EnemyPatrolNavMeshRegionPath()
{
int num = 0;
int num2 = 0;
EnemyPatrolNavMeshRegionPath.EEKBMCIFBDK = num;
EnemyPatrolNavMeshRegionPath.HGKDAJJDAJL = num2;
}
// Token: 0x04000F0A RID: 3850
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000F0A")]
[SerializeField]
private NavMeshRegion[] pathNodes;
// Token: 0x04000F0B RID: 3851
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000F0B")]
[SerializeField]
private float nodeRadius = 0.5f;
// Token: 0x04000F0C RID: 3852
[Token(Token = "0x4000F0C")]
private static readonly Color EEKBMCIFBDK;
// Token: 0x04000F0D RID: 3853
[Token(Token = "0x4000F0D")]
private static readonly Color HGKDAJJDAJL;
}