174 lines
6.7 KiB
C#
174 lines
6.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000291 RID: 657
|
|
[Token(Token = "0x2000291")]
|
|
[RequireComponent(typeof(PhotonView))]
|
|
[StructLayout(3)]
|
|
public class EnemyPatrolPath : EnemyPatrol
|
|
{
|
|
// Token: 0x06001356 RID: 4950 RVA: 0x0005158C File Offset: 0x0004F78C
|
|
[Token(Token = "0x6001356")]
|
|
[Address(RVA = "0x1527070", Offset = "0x1525A70", VA = "0x181527070", Slot = "15")]
|
|
public override bool HasReachedTarget(Vector3 PJBCOJLDFMH, Vector3 JJGDNPNBINJ)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001356)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean EnemyPatrolPath::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(EnemyPatrolPath::nodeRadius, ldloc:EnemyPatrolPath(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: 0x06001357 RID: 4951 RVA: 0x000515B8 File Offset: 0x0004F7B8
|
|
[Token(Token = "0x6001357")]
|
|
[Address(RVA = "0x1527050", Offset = "0x1525A50", VA = "0x181527050", Slot = "16")]
|
|
public override bool HasFinishedPatrol(int PPGFPOCGJAN)
|
|
{
|
|
if (this.pathNodes == 0)
|
|
{
|
|
return true;
|
|
}
|
|
if (this.loop)
|
|
{
|
|
}
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06001358 RID: 4952 RVA: 0x000515DC File Offset: 0x0004F7DC
|
|
[Token(Token = "0x6001358")]
|
|
[Address(RVA = "0x15274D0", Offset = "0x1525ED0", VA = "0x1815274D0", Slot = "17")]
|
|
public override bool TryGetNextTarget(int HDANABPONGB, out int MMDNOCLDKFN, out Vector3 CMJAMJEHJLG)
|
|
{
|
|
int num = 0;
|
|
float z = Vector3.zero.z;
|
|
CMJAMJEHJLG.z = z;
|
|
Transform[] array = this.pathNodes;
|
|
if (array != 0 && array.Length != 0)
|
|
{
|
|
int num2 = HDANABPONGB + 1;
|
|
if (!this.loop)
|
|
{
|
|
MMDNOCLDKFN.m_value = num2;
|
|
int length = this.pathNodes.Length;
|
|
if (num2 >= length)
|
|
{
|
|
goto IL_79;
|
|
}
|
|
int num3 = HDANABPONGB + 1;
|
|
}
|
|
MMDNOCLDKFN.m_value = num;
|
|
Transform transform = this.pathNodes[num];
|
|
Vector3 vector;
|
|
float z2 = vector.z;
|
|
CMJAMJEHJLG.z = z2;
|
|
}
|
|
IL_79:
|
|
throw new IndexOutOfRangeException();
|
|
}
|
|
|
|
// Token: 0x06001359 RID: 4953 RVA: 0x0005166C File Offset: 0x0004F86C
|
|
[Token(Token = "0x6001359")]
|
|
[Address(RVA = "0x1526FD0", Offset = "0x15259D0", VA = "0x181526FD0", Slot = "18")]
|
|
public override Vector3 GetGizmoPosition()
|
|
{
|
|
if (this != 0)
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600135A RID: 4954 RVA: 0x0005168C File Offset: 0x0004F88C
|
|
[Token(Token = "0x600135A")]
|
|
[Address(RVA = "0x1527140", Offset = "0x1525B40", VA = "0x181527140")]
|
|
private void OnDrawGizmos()
|
|
{
|
|
Transform[] array = this.pathNodes;
|
|
if (array != 0)
|
|
{
|
|
int length = array.Length;
|
|
if (length != 0)
|
|
{
|
|
int num = 0;
|
|
if (length > 0)
|
|
{
|
|
Transform transform = this.pathNodes[num];
|
|
Transform[] array2 = this.pathNodes;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Color red = Color.red;
|
|
float z3 = Vector3.one.z;
|
|
Vector3 vector3;
|
|
float z4 = vector3.z;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600135B RID: 4955 RVA: 0x00051700 File Offset: 0x0004F900
|
|
[Token(Token = "0x600135B")]
|
|
[Address(RVA = "0x1527390", Offset = "0x1525D90", VA = "0x181527390")]
|
|
private void PCODAHIMMBD(Vector3 FKGCMPGAIAP, Vector3 KOFMGJJCPPB, bool JBBNKBIAFKG)
|
|
{
|
|
Color red = Color.red;
|
|
float z = KOFMGJJCPPB.z;
|
|
float z2 = FKGCMPGAIAP.z;
|
|
if (JBBNKBIAFKG)
|
|
{
|
|
float z3 = Vector3.one.z;
|
|
Vector3 vector;
|
|
float z4 = vector.z;
|
|
float z5 = KOFMGJJCPPB.z;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600135C RID: 4956 RVA: 0x00051744 File Offset: 0x0004F944
|
|
[Token(Token = "0x600135C")]
|
|
[Address(RVA = "0x1527610", Offset = "0x1526010", VA = "0x181527610")]
|
|
public EnemyPatrolPath()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000F0E RID: 3854
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000F0E")]
|
|
[SerializeField]
|
|
private Transform[] pathNodes;
|
|
|
|
// Token: 0x04000F0F RID: 3855
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000F0F")]
|
|
[SerializeField]
|
|
private float nodeRadius = 0.25f;
|
|
|
|
// Token: 0x04000F10 RID: 3856
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x4000F10")]
|
|
[SerializeField]
|
|
private bool loop;
|
|
}
|