208 lines
9.8 KiB
C#
208 lines
9.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200009E RID: 158
|
|
[Token(Token = "0x200009E")]
|
|
public class WitchPatrolPoints : EnemyPatrol
|
|
{
|
|
// Token: 0x0600042F RID: 1071 RVA: 0x00016C48 File Offset: 0x00014E48
|
|
[Token(Token = "0x600042F")]
|
|
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "15")]
|
|
public override bool HasReachedTarget(Vector3 PJBCOJLDFMH, Vector3 JJGDNPNBINJ)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000430 RID: 1072 RVA: 0x00016C58 File Offset: 0x00014E58
|
|
[Token(Token = "0x6000430")]
|
|
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "16")]
|
|
public override bool HasFinishedPatrol(int HDANABPONGB)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000431 RID: 1073 RVA: 0x00016C68 File Offset: 0x00014E68
|
|
[Token(Token = "0x6000431")]
|
|
[Address(RVA = "0x156E090", Offset = "0x156CE90", VA = "0x18156E090", Slot = "17")]
|
|
public override bool TryGetNextTarget(int HDANABPONGB, out int MMDNOCLDKFN, out Vector3 JJGDNPNBINJ)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000431)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean WitchPatrolPoints::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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06000432 RID: 1074 RVA: 0x00016C88 File Offset: 0x00014E88
|
|
[Token(Token = "0x6000432")]
|
|
[Address(RVA = "0x156DC20", Offset = "0x156CA20", VA = "0x18156DC20", Slot = "18")]
|
|
public override Vector3 GetGizmoPosition()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000432)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector3 WitchPatrolPoints::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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06000433 RID: 1075 RVA: 0x00016CA0 File Offset: 0x00014EA0
|
|
[Token(Token = "0x6000433")]
|
|
[Address(RVA = "0x156DCD0", Offset = "0x156CAD0", VA = "0x18156DCD0")]
|
|
public Vector3 GetRandomWitchPoint()
|
|
{
|
|
DateTime utcNow = DateTime.UtcNow;
|
|
global::UnityEngine.Random.InitState((int)utcNow.dateData);
|
|
ulong dateData = utcNow.dateData;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06000434 RID: 1076 RVA: 0x00016CD8 File Offset: 0x00014ED8
|
|
[Token(Token = "0x6000434")]
|
|
[Address(RVA = "0x156DC90", Offset = "0x156CA90", VA = "0x18156DC90")]
|
|
public Vector3 GetInitialWitchPoint()
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06000435 RID: 1077 RVA: 0x00016CF4 File Offset: 0x00014EF4
|
|
[Token(Token = "0x6000435")]
|
|
[Address(RVA = "0xFBEE00", Offset = "0xFBDC00", VA = "0x180FBEE00")]
|
|
public Vector3 GetFinalWitchPoint()
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06000436 RID: 1078 RVA: 0x00016D10 File Offset: 0x00014F10
|
|
[Token(Token = "0x6000436")]
|
|
[Address(RVA = "0x156DDB0", Offset = "0x156CBB0", VA = "0x18156DDB0")]
|
|
public Vector3 GetRetreatWitchPoint()
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x170000A4 RID: 164
|
|
// (get) Token: 0x06000437 RID: 1079 RVA: 0x00016D2C File Offset: 0x00014F2C
|
|
[Token(Token = "0x170000A4")]
|
|
public override bool FFJCAJELFAH
|
|
{
|
|
[Token(Token = "0x6000437")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "19")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000438 RID: 1080 RVA: 0x00016D3C File Offset: 0x00014F3C
|
|
[Token(Token = "0x6000438")]
|
|
[Address(RVA = "0x156DDF0", Offset = "0x156CBF0", VA = "0x18156DDF0")]
|
|
private void OnDrawGizmosSelected()
|
|
{
|
|
Transform transform = this.initialWitchPoint;
|
|
int num = 0;
|
|
if (transform != num)
|
|
{
|
|
Color blue = Color.blue;
|
|
Transform transform2 = this.initialWitchPoint;
|
|
Vector3 position = transform.position;
|
|
}
|
|
if (this.randomWitchPoints != (ulong)0L)
|
|
{
|
|
Color white = Color.white;
|
|
Transform[] array = this.randomWitchPoints;
|
|
int num2 = 0;
|
|
int length = array.Length;
|
|
if (num2 < length)
|
|
{
|
|
Transform transform3 = array[num2];
|
|
Gizmos.DrawSphere(num2, 0.3f);
|
|
num2++;
|
|
}
|
|
}
|
|
Transform transform4 = this.finalWitchPoint;
|
|
int num3 = 0;
|
|
if (transform4 != num3)
|
|
{
|
|
Color red = Color.red;
|
|
Transform transform5 = this.finalWitchPoint;
|
|
Vector3 position2 = transform4.position;
|
|
}
|
|
Transform transform6 = this.retreatPoint;
|
|
int num4 = 0;
|
|
if (transform6 != num4)
|
|
{
|
|
Color cyan = Color.cyan;
|
|
Transform transform7 = this.retreatPoint;
|
|
float z = transform6.position.z;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000439 RID: 1081 RVA: 0x00016E24 File Offset: 0x00015024
|
|
[Token(Token = "0x6000439")]
|
|
[Address(RVA = "0x7FA090", Offset = "0x7F8E90", VA = "0x1807FA090")]
|
|
public WitchPatrolPoints()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400038C RID: 908
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400038C")]
|
|
[SerializeField]
|
|
private Transform initialWitchPoint;
|
|
|
|
// Token: 0x0400038D RID: 909
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400038D")]
|
|
[SerializeField]
|
|
private Transform finalWitchPoint;
|
|
|
|
// Token: 0x0400038E RID: 910
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400038E")]
|
|
[SerializeField]
|
|
private Transform retreatPoint;
|
|
|
|
// Token: 0x0400038F RID: 911
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400038F")]
|
|
[SerializeField]
|
|
private Transform[] randomWitchPoints;
|
|
}
|