using System; using Cpp2IlInjected; using Photon.Pun; using UnityEngine; // Token: 0x02000288 RID: 648 [Token(Token = "0x2000288")] [RequireComponent(typeof(PhotonView))] public class EnemyPatrolNavMeshRegionPath : EnemyPatrol { // Token: 0x06001335 RID: 4917 RVA: 0x00050C68 File Offset: 0x0004EE68 [Token(Token = "0x6001335")] [Address(RVA = "0x1FEFA10", Offset = "0x1FEEA10", VA = "0x181FEFA10", Slot = "15")] public override bool HasReachedTarget(Vector3 PJBCOJLDFMH, Vector3 JJGDNPNBINJ) { /* An exception occurred when decompiling this method (06001335) 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_6_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: 0x06001336 RID: 4918 RVA: 0x00050C94 File Offset: 0x0004EE94 [Token(Token = "0x6001336")] [Address(RVA = "0x1FEFA00", Offset = "0x1FEEA00", VA = "0x181FEFA00", Slot = "16")] public override bool HasFinishedPatrol(int PPGFPOCGJAN) { return this.pathNodes == (ulong)0L; } // Token: 0x06001337 RID: 4919 RVA: 0x00050CAC File Offset: 0x0004EEAC [Token(Token = "0x6001337")] [Address(RVA = "0x1FF00D0", Offset = "0x1FEF0D0", VA = "0x181FF00D0", 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: 0x06001338 RID: 4920 RVA: 0x00050D2C File Offset: 0x0004EF2C [Token(Token = "0x6001338")] [Address(RVA = "0x1FEF8F0", Offset = "0x1FEE8F0", VA = "0x181FEF8F0", Slot = "18")] public override Vector3 GetGizmoPosition() { bool flag; if (flag) { Vector3 vector; float z = vector.z; } throw new NullReferenceException(); } // Token: 0x06001339 RID: 4921 RVA: 0x00050D4C File Offset: 0x0004EF4C [Token(Token = "0x6001339")] [Address(RVA = "0x1FEFAE0", Offset = "0x1FEEAE0", VA = "0x181FEFAE0")] 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: 0x0600133A RID: 4922 RVA: 0x00050E54 File Offset: 0x0004F054 [Token(Token = "0x600133A")] [Address(RVA = "0x1FEFF80", Offset = "0x1FEEF80", VA = "0x181FEFF80")] 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: 0x0600133B RID: 4923 RVA: 0x00050E9C File Offset: 0x0004F09C [Token(Token = "0x600133B")] [Address(RVA = "0x1FF02D0", Offset = "0x1FEF2D0", VA = "0x181FF02D0")] public EnemyPatrolNavMeshRegionPath() { } // Token: 0x0600133C RID: 4924 RVA: 0x00050EBC File Offset: 0x0004F0BC // Note: this type is marked as 'beforefieldinit'. [Token(Token = "0x600133C")] [Address(RVA = "0x1FF0200", Offset = "0x1FEF200", VA = "0x181FF0200")] static EnemyPatrolNavMeshRegionPath() { int num = 0; int num2 = 0; EnemyPatrolNavMeshRegionPath.EEKBMCIFBDK = num; EnemyPatrolNavMeshRegionPath.HGKDAJJDAJL = num2; } // Token: 0x04000EF1 RID: 3825 [FieldOffset(Offset = "0x40")] [Token(Token = "0x4000EF1")] [SerializeField] private NavMeshRegion[] pathNodes; // Token: 0x04000EF2 RID: 3826 [FieldOffset(Offset = "0x48")] [Token(Token = "0x4000EF2")] [SerializeField] private float nodeRadius = 0.5f; // Token: 0x04000EF3 RID: 3827 [Token(Token = "0x4000EF3")] private static readonly Color EEKBMCIFBDK; // Token: 0x04000EF4 RID: 3828 [Token(Token = "0x4000EF4")] private static readonly Color HGKDAJJDAJL; }