Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp/EnemyPatrolNavMeshRegionPath.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

202 lines
8.1 KiB
C#

using System;
using Cpp2IlInjected;
using Photon.Pun;
using UnityEngine;
// Token: 0x02000282 RID: 642
[Token(Token = "0x2000282")]
[RequireComponent(typeof(PhotonView))]
public class EnemyPatrolNavMeshRegionPath : EnemyPatrol
{
// Token: 0x060012F7 RID: 4855 RVA: 0x0004FF70 File Offset: 0x0004E170
[Token(Token = "0x60012F7")]
[Address(RVA = "0x12AD490", Offset = "0x12AC290", VA = "0x1812AD490", Slot = "15")]
public override bool HasReachedTarget(Vector3 PJBCOJLDFMH, Vector3 JJGDNPNBINJ)
{
/*
An exception occurred when decompiling this method (060012F7)
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 1660
*/;
}
// Token: 0x060012F8 RID: 4856 RVA: 0x0004FF9C File Offset: 0x0004E19C
[Token(Token = "0x60012F8")]
[Address(RVA = "0x12AD480", Offset = "0x12AC280", VA = "0x1812AD480", Slot = "16")]
public override bool HasFinishedPatrol(int PPGFPOCGJAN)
{
return this.pathNodes == (ulong)0L;
}
// Token: 0x060012F9 RID: 4857 RVA: 0x0004FFB4 File Offset: 0x0004E1B4
[Token(Token = "0x60012F9")]
[Address(RVA = "0x12ADB50", Offset = "0x12AC950", VA = "0x1812ADB50", 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: 0x060012FA RID: 4858 RVA: 0x00050034 File Offset: 0x0004E234
[Token(Token = "0x60012FA")]
[Address(RVA = "0x12AD370", Offset = "0x12AC170", VA = "0x1812AD370", Slot = "18")]
public override Vector3 GetGizmoPosition()
{
bool flag;
if (flag)
{
Vector3 vector;
float z = vector.z;
}
throw new NullReferenceException();
}
// Token: 0x060012FB RID: 4859 RVA: 0x00050054 File Offset: 0x0004E254
[Token(Token = "0x60012FB")]
[Address(RVA = "0x12AD560", Offset = "0x12AC360", VA = "0x1812AD560")]
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: 0x060012FC RID: 4860 RVA: 0x0005015C File Offset: 0x0004E35C
[Token(Token = "0x60012FC")]
[Address(RVA = "0x12ADA00", Offset = "0x12AC800", VA = "0x1812ADA00")]
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: 0x060012FD RID: 4861 RVA: 0x000501A4 File Offset: 0x0004E3A4
[Token(Token = "0x60012FD")]
[Address(RVA = "0x12ADD50", Offset = "0x12ACB50", VA = "0x1812ADD50")]
public EnemyPatrolNavMeshRegionPath()
{
}
// Token: 0x060012FE RID: 4862 RVA: 0x000501C4 File Offset: 0x0004E3C4
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x60012FE")]
[Address(RVA = "0x12ADC80", Offset = "0x12ACA80", VA = "0x1812ADC80")]
static EnemyPatrolNavMeshRegionPath()
{
int num = 0;
int num2 = 0;
EnemyPatrolNavMeshRegionPath.EEKBMCIFBDK = num;
EnemyPatrolNavMeshRegionPath.HGKDAJJDAJL = num2;
}
// Token: 0x04000EBD RID: 3773
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000EBD")]
[SerializeField]
private NavMeshRegion[] pathNodes;
// Token: 0x04000EBE RID: 3774
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000EBE")]
[SerializeField]
private float nodeRadius = 0.5f;
// Token: 0x04000EBF RID: 3775
[Token(Token = "0x4000EBF")]
private static readonly Color EEKBMCIFBDK;
// Token: 0x04000EC0 RID: 3776
[Token(Token = "0x4000EC0")]
private static readonly Color HGKDAJJDAJL;
}