172 lines
6.6 KiB
C#
172 lines
6.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000283 RID: 643
|
|
[Token(Token = "0x2000283")]
|
|
[RequireComponent(typeof(PhotonView))]
|
|
public class EnemyPatrolPath : EnemyPatrol
|
|
{
|
|
// Token: 0x060012FF RID: 4863 RVA: 0x000501E4 File Offset: 0x0004E3E4
|
|
[Token(Token = "0x60012FF")]
|
|
[Address(RVA = "0x12AE080", Offset = "0x12ACE80", VA = "0x1812AE080", Slot = "15")]
|
|
public override bool HasReachedTarget(Vector3 PJBCOJLDFMH, Vector3 JJGDNPNBINJ)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060012FF)
|
|
|
|
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_6_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: 0x06001300 RID: 4864 RVA: 0x00050210 File Offset: 0x0004E410
|
|
[Token(Token = "0x6001300")]
|
|
[Address(RVA = "0x12AE060", Offset = "0x12ACE60", VA = "0x1812AE060", Slot = "16")]
|
|
public override bool HasFinishedPatrol(int PPGFPOCGJAN)
|
|
{
|
|
if (this.pathNodes == 0)
|
|
{
|
|
return true;
|
|
}
|
|
if (this.loop)
|
|
{
|
|
}
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06001301 RID: 4865 RVA: 0x00050234 File Offset: 0x0004E434
|
|
[Token(Token = "0x6001301")]
|
|
[Address(RVA = "0x12AE4E0", Offset = "0x12AD2E0", VA = "0x1812AE4E0", 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: 0x06001302 RID: 4866 RVA: 0x000502C4 File Offset: 0x0004E4C4
|
|
[Token(Token = "0x6001302")]
|
|
[Address(RVA = "0x12ADFE0", Offset = "0x12ACDE0", VA = "0x1812ADFE0", Slot = "18")]
|
|
public override Vector3 GetGizmoPosition()
|
|
{
|
|
if (this != 0)
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001303 RID: 4867 RVA: 0x000502E4 File Offset: 0x0004E4E4
|
|
[Token(Token = "0x6001303")]
|
|
[Address(RVA = "0x12AE150", Offset = "0x12ACF50", VA = "0x1812AE150")]
|
|
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: 0x06001304 RID: 4868 RVA: 0x00050358 File Offset: 0x0004E558
|
|
[Token(Token = "0x6001304")]
|
|
[Address(RVA = "0x12AE3A0", Offset = "0x12AD1A0", VA = "0x1812AE3A0")]
|
|
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: 0x06001305 RID: 4869 RVA: 0x0005039C File Offset: 0x0004E59C
|
|
[Token(Token = "0x6001305")]
|
|
[Address(RVA = "0x12AE620", Offset = "0x12AD420", VA = "0x1812AE620")]
|
|
public EnemyPatrolPath()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000EC1 RID: 3777
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000EC1")]
|
|
[SerializeField]
|
|
private Transform[] pathNodes;
|
|
|
|
// Token: 0x04000EC2 RID: 3778
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000EC2")]
|
|
[SerializeField]
|
|
private float nodeRadius = 0.25f;
|
|
|
|
// Token: 0x04000EC3 RID: 3779
|
|
[FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x4000EC3")]
|
|
[SerializeField]
|
|
private bool loop;
|
|
}
|