198 lines
9.5 KiB
C#
198 lines
9.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020000C4 RID: 196
|
|
[Token(Token = "0x20000C4")]
|
|
[RequireComponent(typeof(PhotonView))]
|
|
[StructLayout(3)]
|
|
public class QuestPirateBossPatrolPoints : EnemyPatrol
|
|
{
|
|
// Token: 0x170000C1 RID: 193
|
|
// (get) Token: 0x06000534 RID: 1332 RVA: 0x0001ABFC File Offset: 0x00018DFC
|
|
[Token(Token = "0x170000C1")]
|
|
public int HPLGFLFJNBO
|
|
{
|
|
[Token(Token = "0x6000534")]
|
|
[Address(RVA = "0x829060", Offset = "0x827A60", VA = "0x180829060")]
|
|
get
|
|
{
|
|
return this.orderedPatrolPoints.Length;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000535 RID: 1333 RVA: 0x0001AC1C File Offset: 0x00018E1C
|
|
[Token(Token = "0x6000535")]
|
|
[Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "15")]
|
|
public override bool HasReachedTarget(Vector3 PJBCOJLDFMH, Vector3 JJGDNPNBINJ)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000536 RID: 1334 RVA: 0x0001AC2C File Offset: 0x00018E2C
|
|
[Token(Token = "0x6000536")]
|
|
[Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "16")]
|
|
public override bool HasFinishedPatrol(int HDANABPONGB)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000537 RID: 1335 RVA: 0x0001AC3C File Offset: 0x00018E3C
|
|
[Token(Token = "0x6000537")]
|
|
[Address(RVA = "0x1246B30", Offset = "0x1245530", VA = "0x181246B30", Slot = "17")]
|
|
public override bool TryGetNextTarget(int HDANABPONGB, out int MMDNOCLDKFN, out Vector3 JJGDNPNBINJ)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000537)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean QuestPirateBossPatrolPoints::TryGetNextTarget(System.Int32,System.Int32&,UnityEngine.Vector3&)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:float32(var_0_0A, ldfld:float32(Vector3::z, callgetter:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Vector3::get_zero)))
|
|
stfld:float32(Vector3::z, ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&(JJGDNPNBINJ), ldloc:float32(var_0_0A))
|
|
}
|
|
|
|
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: 0x06000538 RID: 1336 RVA: 0x0001AC5C File Offset: 0x00018E5C
|
|
[Token(Token = "0x6000538")]
|
|
[Address(RVA = "0x12466F0", Offset = "0x12450F0", VA = "0x1812466F0", Slot = "18")]
|
|
public override Vector3 GetGizmoPosition()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000538)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector3 QuestPirateBossPatrolPoints::GetGizmoPosition()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:float32(var_0_0A, ldfld:float32(Vector3::z, callgetter:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Vector3::get_zero)))
|
|
}
|
|
|
|
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: 0x06000539 RID: 1337 RVA: 0x0001AC74 File Offset: 0x00018E74
|
|
[Token(Token = "0x6000539")]
|
|
[Address(RVA = "0x1246760", Offset = "0x1245160", VA = "0x181246760")]
|
|
public Transform GetPatrolTransformAtIndex(int EFBDCIJMFGD)
|
|
{
|
|
Transform[] array = this.orderedPatrolPoints;
|
|
if (array == 0)
|
|
{
|
|
return base.transform;
|
|
}
|
|
int length = array.Length;
|
|
if (EFBDCIJMFGD < length)
|
|
{
|
|
return array[EFBDCIJMFGD];
|
|
}
|
|
int num = length - 1;
|
|
return array[num];
|
|
}
|
|
|
|
// Token: 0x170000C2 RID: 194
|
|
// (get) Token: 0x0600053A RID: 1338 RVA: 0x0001ACC4 File Offset: 0x00018EC4
|
|
[Token(Token = "0x170000C2")]
|
|
public override bool FFJCAJELFAH
|
|
{
|
|
[Token(Token = "0x600053A")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "19")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600053B RID: 1339 RVA: 0x0001ACD4 File Offset: 0x00018ED4
|
|
[Token(Token = "0x600053B")]
|
|
[Address(RVA = "0x12467F0", Offset = "0x12451F0", VA = "0x1812467F0")]
|
|
public Transform GetRetreatTransform()
|
|
{
|
|
Transform transform = this.retreatPoint;
|
|
int num = 0;
|
|
if (transform != num)
|
|
{
|
|
return this.retreatPoint;
|
|
}
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x0600053C RID: 1340 RVA: 0x0001AD04 File Offset: 0x00018F04
|
|
[Token(Token = "0x600053C")]
|
|
[Address(RVA = "0x1246870", Offset = "0x1245270", VA = "0x181246870")]
|
|
private void OnDrawGizmosSelected()
|
|
{
|
|
Transform[] array = this.orderedPatrolPoints;
|
|
if (array != 0)
|
|
{
|
|
int length = array.Length;
|
|
if (length != 0)
|
|
{
|
|
if (length > 1)
|
|
{
|
|
Color blue = Color.blue;
|
|
Transform transform = this.orderedPatrolPoints[0];
|
|
int length2 = this.orderedPatrolPoints.Length;
|
|
if ((uint)1 < (uint)length2)
|
|
{
|
|
Color white = Color.white;
|
|
Vector3 position = this.orderedPatrolPoints.position;
|
|
Transform[] array2 = this.orderedPatrolPoints;
|
|
}
|
|
}
|
|
Color red = Color.red;
|
|
Transform[] array3 = this.orderedPatrolPoints;
|
|
int num = array3.Length - 1;
|
|
Transform transform2 = array3[num];
|
|
}
|
|
}
|
|
Transform transform3 = this.retreatPoint;
|
|
int num2 = 0;
|
|
if (transform3 != num2)
|
|
{
|
|
Color yellow = Color.yellow;
|
|
Transform transform4 = this.retreatPoint;
|
|
float z = transform3.position.z;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600053D RID: 1341 RVA: 0x0001ADCC File Offset: 0x00018FCC
|
|
[Token(Token = "0x600053D")]
|
|
[Address(RVA = "0x115DE50", Offset = "0x115C850", VA = "0x18115DE50")]
|
|
public QuestPirateBossPatrolPoints()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000485 RID: 1157
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000485")]
|
|
[SerializeField]
|
|
private Transform[] orderedPatrolPoints;
|
|
|
|
// Token: 0x04000486 RID: 1158
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000486")]
|
|
[SerializeField]
|
|
private Transform retreatPoint;
|
|
}
|