Files
NobetaSource/Cpp2IL/Assembly-CSharp/AutoLock.cs
2023-09-06 22:09:22 +02:00

165 lines
7.0 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x020002F4 RID: 756
[Token(Token = "0x20002F4")]
public class AutoLock
{
// Token: 0x06001C16 RID: 7190 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C16")]
[Address(RVA = "0xB69150", Offset = "0xB67950", VA = "0x180B69150")]
public void Start(Transform source)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C17 RID: 7191 RVA: 0x00042CE0 File Offset: 0x00040EE0
[Token(Token = "0x6001C17")]
[Address(RVA = "0xB696F0", Offset = "0xB67EF0", VA = "0x180B696F0")]
public void Update()
{
this.TargetEnter();
this.TargetExit();
}
// Token: 0x06001C18 RID: 7192 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C18")]
[Address(RVA = "0xB692A0", Offset = "0xB67AA0", VA = "0x180B692A0")]
private void TargetEnter()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C19 RID: 7193 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C19")]
[Address(RVA = "0xB694B0", Offset = "0xB67CB0", VA = "0x180B694B0")]
private void TargetExit()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C1A RID: 7194 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C1A")]
[Address(RVA = "0xB68800", Offset = "0xB67000", VA = "0x180B68800")]
public Transform FindNear(Vector3 Direction)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C1B RID: 7195 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C1B")]
[Address(RVA = "0xB68B10", Offset = "0xB67310", VA = "0x180B68B10")]
public Transform GetLockTarget()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C1C RID: 7196 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C1C")]
[Address(RVA = "0xB68CF0", Offset = "0xB674F0", VA = "0x180B68CF0")]
public Vector3 GetTargetDirection()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C1D RID: 7197 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C1D")]
[Address(RVA = "0xB68F60", Offset = "0xB67760", VA = "0x180B68F60")]
public float GetTargetDistance()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C1E RID: 7198 RVA: 0x00042CFC File Offset: 0x00040EFC
[Token(Token = "0x6001C1E")]
[Address(RVA = "0x458A70", Offset = "0x457270", VA = "0x180458A70")]
public void SetLockTarget(Transform Target)
{
/*
An exception occurred when decompiling this method (06001C1E)
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: 0x06001C1F RID: 7199 RVA: 0x00042D10 File Offset: 0x00040F10
[Token(Token = "0x6001C1F")]
[Address(RVA = "0xB68AB0", Offset = "0xB672B0", VA = "0x180B68AB0")]
public bool GetIsLockTarget()
{
Transform transform = this.g_LockTarget;
int num = 0;
return transform != num;
}
// Token: 0x06001C20 RID: 7200 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6001C20")]
[Address(RVA = "0xB68A60", Offset = "0xB67260", VA = "0x180B68A60")]
public bool GetIsEnemyInRate()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001C21 RID: 7201 RVA: 0x00042D30 File Offset: 0x00040F30
[Token(Token = "0x6001C21")]
[Address(RVA = "0xB69710", Offset = "0xB67F10", VA = "0x180B69710")]
public AutoLock()
{
Collider[] array = new Collider[20];
this.hitColliders = array;
base..ctor();
}
// Token: 0x040025C6 RID: 9670
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40025C6")]
private Transform source;
// Token: 0x040025C7 RID: 9671
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40025C7")]
private List<Transform> g_TargetList;
// Token: 0x040025C8 RID: 9672
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40025C8")]
private float g_Radius = 10f;
// Token: 0x040025C9 RID: 9673
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x40025C9")]
private float g_Angle = 90f;
// Token: 0x040025CA RID: 9674
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40025CA")]
private int g_NearID = (int)((ulong)4294967295L);
// Token: 0x040025CB RID: 9675
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40025CB")]
private Collider[] hitColliders;
// Token: 0x040025CC RID: 9676
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40025CC")]
private Transform g_LockTarget;
// Token: 0x040025CD RID: 9677
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40025CD")]
private LayerMask characterLayer;
}