165 lines
7.0 KiB
C#
165 lines
7.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000340 RID: 832
|
|
[Token(Token = "0x2000340")]
|
|
public class AutoLock
|
|
{
|
|
// Token: 0x06001E7F RID: 7807 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E7F")]
|
|
[Address(RVA = "0x79D140", Offset = "0x79C140", VA = "0x18079D140")]
|
|
public void Start(Transform source)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E80 RID: 7808 RVA: 0x00048714 File Offset: 0x00046914
|
|
[Token(Token = "0x6001E80")]
|
|
[Address(RVA = "0x79D6E0", Offset = "0x79C6E0", VA = "0x18079D6E0")]
|
|
public void Update()
|
|
{
|
|
this.TargetEnter();
|
|
this.TargetExit();
|
|
}
|
|
|
|
// Token: 0x06001E81 RID: 7809 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E81")]
|
|
[Address(RVA = "0x79D290", Offset = "0x79C290", VA = "0x18079D290")]
|
|
private void TargetEnter()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E82 RID: 7810 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E82")]
|
|
[Address(RVA = "0x79D4A0", Offset = "0x79C4A0", VA = "0x18079D4A0")]
|
|
private void TargetExit()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E83 RID: 7811 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E83")]
|
|
[Address(RVA = "0x79C7F0", Offset = "0x79B7F0", VA = "0x18079C7F0")]
|
|
public Transform FindNear(Vector3 Direction)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E84 RID: 7812 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E84")]
|
|
[Address(RVA = "0x79CB00", Offset = "0x79BB00", VA = "0x18079CB00")]
|
|
public Transform GetLockTarget()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E85 RID: 7813 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E85")]
|
|
[Address(RVA = "0x79CCE0", Offset = "0x79BCE0", VA = "0x18079CCE0")]
|
|
public Vector3 GetTargetDirection()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E86 RID: 7814 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E86")]
|
|
[Address(RVA = "0x79CF50", Offset = "0x79BF50", VA = "0x18079CF50")]
|
|
public float GetTargetDistance()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E87 RID: 7815 RVA: 0x00048730 File Offset: 0x00046930
|
|
[Token(Token = "0x6001E87")]
|
|
[Address(RVA = "0x369EF0", Offset = "0x368EF0", VA = "0x180369EF0")]
|
|
public void SetLockTarget(Transform Target)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001E87)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AutoLock::SetLockTarget(UnityEngine.Transform)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:Transform(AutoLock::g_LockTarget, ldloc:AutoLock(this), ldloc:Transform(Target)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
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 344
|
|
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 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06001E88 RID: 7816 RVA: 0x00048744 File Offset: 0x00046944
|
|
[Token(Token = "0x6001E88")]
|
|
[Address(RVA = "0x79CAA0", Offset = "0x79BAA0", VA = "0x18079CAA0")]
|
|
public bool GetIsLockTarget()
|
|
{
|
|
Transform transform = this.g_LockTarget;
|
|
int num = 0;
|
|
return transform != num;
|
|
}
|
|
|
|
// Token: 0x06001E89 RID: 7817 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001E89")]
|
|
[Address(RVA = "0x79CA50", Offset = "0x79BA50", VA = "0x18079CA50")]
|
|
public bool GetIsEnemyInRate()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001E8A RID: 7818 RVA: 0x00048764 File Offset: 0x00046964
|
|
[Token(Token = "0x6001E8A")]
|
|
[Address(RVA = "0x79D700", Offset = "0x79C700", VA = "0x18079D700")]
|
|
public AutoLock()
|
|
{
|
|
Collider[] array = new Collider[20];
|
|
this.hitColliders = array;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400283F RID: 10303
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400283F")]
|
|
private Transform source;
|
|
|
|
// Token: 0x04002840 RID: 10304
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002840")]
|
|
private List<Transform> g_TargetList;
|
|
|
|
// Token: 0x04002841 RID: 10305
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002841")]
|
|
private float g_Radius = 10f;
|
|
|
|
// Token: 0x04002842 RID: 10306
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4002842")]
|
|
private float g_Angle = 90f;
|
|
|
|
// Token: 0x04002843 RID: 10307
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002843")]
|
|
private int g_NearID = (int)((ulong)4294967295L);
|
|
|
|
// Token: 0x04002844 RID: 10308
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4002844")]
|
|
private Collider[] hitColliders;
|
|
|
|
// Token: 0x04002845 RID: 10309
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4002845")]
|
|
private Transform g_LockTarget;
|
|
|
|
// Token: 0x04002846 RID: 10310
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4002846")]
|
|
private LayerMask characterLayer;
|
|
}
|