296 lines
10 KiB
C#
296 lines
10 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Reflection;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020000D7 RID: 215
|
|
[Token(Token = "0x20000D7")]
|
|
public class AutoReposition : MonoBehaviour
|
|
{
|
|
// Token: 0x0600057E RID: 1406 RVA: 0x0001CA64 File Offset: 0x0001AC64
|
|
[Token(Token = "0x600057E")]
|
|
[Address(RVA = "0x2158140", Offset = "0x2157140", VA = "0x182158140")]
|
|
private void Update()
|
|
{
|
|
if (SingletonMonoBehaviour.FFNIFALJLDD)
|
|
{
|
|
if (!this.LMJPGEHCMBH)
|
|
{
|
|
AutoReposition.MCDAMIEKBJP customShouldRunLogic = this.CustomShouldRunLogic;
|
|
if (customShouldRunLogic != 0)
|
|
{
|
|
bool flag = customShouldRunLogic();
|
|
if (this.LMJPGEHCMBH || !flag)
|
|
{
|
|
goto IL_F7;
|
|
}
|
|
}
|
|
Transform transform = this.transformToMonitor;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform2 = SingletonMonoBehaviour.ONCPNMDGGKG.CHLMFLCFGFL.transform;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
float num = this.acceptableDistance_meters;
|
|
float num2;
|
|
if (num2 > num)
|
|
{
|
|
float deltaTime = Time.deltaTime;
|
|
this.OAGMGPOKFIN = deltaTime;
|
|
}
|
|
if (this.JFNEIKEMKOK())
|
|
{
|
|
float deltaTime2 = Time.deltaTime;
|
|
this.LJEEGPMKNFE = deltaTime2;
|
|
}
|
|
if ((this.OAGMGPOKFIN > this.timeBeforeResetForDistance || this.LJEEGPMKNFE > this.timeBeforeResetForAngle) && !this.LMJPGEHCMBH)
|
|
{
|
|
AutoReposition.KPFLNMNFGKI kpflnmnfgki;
|
|
kpflnmnfgki.System.IDisposable.Dispose();
|
|
int num3 = 0;
|
|
kpflnmnfgki.<>4__this = this;
|
|
kpflnmnfgki.<>1__state = num3;
|
|
Coroutine coroutine = base.StartCoroutine(kpflnmnfgki);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
IL_F7:
|
|
int num4 = 0;
|
|
this.OAGMGPOKFIN = (float)num4;
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600057F RID: 1407 RVA: 0x0001CB7C File Offset: 0x0001AD7C
|
|
[Token(Token = "0x600057F")]
|
|
[Address(RVA = "0x21580D0", Offset = "0x21570D0", VA = "0x1821580D0")]
|
|
public void ResetMenu()
|
|
{
|
|
if (!this.LMJPGEHCMBH)
|
|
{
|
|
AutoReposition.KPFLNMNFGKI kpflnmnfgki;
|
|
kpflnmnfgki.System.IDisposable.Dispose();
|
|
kpflnmnfgki.<>1__state = (int)((ulong)0L);
|
|
kpflnmnfgki.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(kpflnmnfgki);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000580 RID: 1408 RVA: 0x0001CBB0 File Offset: 0x0001ADB0
|
|
[Token(Token = "0x6000580")]
|
|
[Address(RVA = "0x2158070", Offset = "0x2157070", VA = "0x182158070")]
|
|
private IEnumerator OKCKJEBCGFM()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000580)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator AutoReposition::OKCKJEBCGFM()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(KPFLNMNFGKI::System.IDisposable.Dispose, ldloc:KPFLNMNFGKI(var_0))
|
|
stfld:int32(KPFLNMNFGKI::<>1__state, ldloc:KPFLNMNFGKI(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:AutoReposition(KPFLNMNFGKI::<>4__this, ldloc:KPFLNMNFGKI(var_0), ldloc:AutoReposition(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: 0x06000581 RID: 1409 RVA: 0x0001CBD4 File Offset: 0x0001ADD4
|
|
[Token(Token = "0x6000581")]
|
|
[Address(RVA = "0x2157EF0", Offset = "0x2156EF0", VA = "0x182157EF0")]
|
|
private bool MBBDGIFDMFB()
|
|
{
|
|
Transform transform = this.transformToMonitor;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform2 = SingletonMonoBehaviour.ONCPNMDGGKG.CHLMFLCFGFL.transform;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
float num = this.acceptableDistance_meters;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06000582 RID: 1410 RVA: 0x0001CC24 File Offset: 0x0001AE24
|
|
[Token(Token = "0x6000582")]
|
|
[Address(RVA = "0x2157C60", Offset = "0x2156C60", VA = "0x182157C60")]
|
|
private bool JFNEIKEMKOK()
|
|
{
|
|
Transform transform = SingletonMonoBehaviour.ONCPNMDGGKG.CHLMFLCFGFL.transform;
|
|
Transform transform2 = this.transformToMonitor;
|
|
Transform transform3 = SingletonMonoBehaviour.ONCPNMDGGKG.CHLMFLCFGFL.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
float num = this.acceptableLookAwayAngle_degrees * 0.017453292f;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06000583 RID: 1411 RVA: 0x0001CC78 File Offset: 0x0001AE78
|
|
[Token(Token = "0x6000583")]
|
|
[Address(RVA = "0x21583F0", Offset = "0x21573F0", VA = "0x1821583F0")]
|
|
public AutoReposition()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000491 RID: 1169
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000491")]
|
|
public float acceptableDistance_meters = 1.5f;
|
|
|
|
// Token: 0x04000492 RID: 1170
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4000492")]
|
|
public float acceptableLookAwayAngle_degrees = 60f;
|
|
|
|
// Token: 0x04000493 RID: 1171
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000493")]
|
|
public float timeBeforeResetForDistance = 0.5f;
|
|
|
|
// Token: 0x04000494 RID: 1172
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4000494")]
|
|
public float timeBeforeResetForAngle = 2f;
|
|
|
|
// Token: 0x04000495 RID: 1173
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000495")]
|
|
public Transform transformToMonitor;
|
|
|
|
// Token: 0x04000496 RID: 1174
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000496")]
|
|
[SerializeField]
|
|
private bool useDefaultPositioning = true;
|
|
|
|
// Token: 0x04000497 RID: 1175
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x4000497")]
|
|
[SerializeField]
|
|
private float defaultDistFromVRCamera = 0.75f;
|
|
|
|
// Token: 0x04000498 RID: 1176
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000498")]
|
|
[SerializeField]
|
|
private float defaultDistFromScreenCamera = 1.25f;
|
|
|
|
// Token: 0x04000499 RID: 1177
|
|
[FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x4000499")]
|
|
[SerializeField]
|
|
private float defaultHeightOffset = -0.1f;
|
|
|
|
// Token: 0x0400049A RID: 1178
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400049A")]
|
|
public IEnumerator OnResetRequired;
|
|
|
|
// Token: 0x0400049B RID: 1179
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400049B")]
|
|
public AutoReposition.MCDAMIEKBJP CustomShouldRunLogic;
|
|
|
|
// Token: 0x0400049C RID: 1180
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400049C")]
|
|
private float OAGMGPOKFIN;
|
|
|
|
// Token: 0x0400049D RID: 1181
|
|
[FieldOffset(Offset = "0x54")]
|
|
[Token(Token = "0x400049D")]
|
|
private float LJEEGPMKNFE;
|
|
|
|
// Token: 0x0400049E RID: 1182
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400049E")]
|
|
private bool LMJPGEHCMBH;
|
|
|
|
// Token: 0x020000D8 RID: 216
|
|
[Token(Token = "0x20000D8")]
|
|
public sealed class MCDAMIEKBJP : MulticastDelegate
|
|
{
|
|
// Token: 0x06000584 RID: 1412 RVA: 0x0001CCE0 File Offset: 0x0001AEE0
|
|
[Token(Token = "0x6000584")]
|
|
[Address(RVA = "0x4AF020", Offset = "0x4AE020", VA = "0x1804AF020")]
|
|
public MCDAMIEKBJP(object FEDFKKMABOG, IntPtr APAICGIHAGJ)
|
|
{
|
|
this.method = APAICGIHAGJ;
|
|
this.m_target = FEDFKKMABOG;
|
|
}
|
|
|
|
// Token: 0x06000585 RID: 1413 RVA: 0x0001CCFC File Offset: 0x0001AEFC
|
|
[Token(Token = "0x6000585")]
|
|
[Address(RVA = "0x12879F0", Offset = "0x12869F0", VA = "0x1812879F0", Slot = "13")]
|
|
public bool Invoke()
|
|
{
|
|
Delegate[] delegates = this.delegates;
|
|
if (delegates != 0)
|
|
{
|
|
}
|
|
int num = 0;
|
|
uint num2;
|
|
if (num2 == (uint)0)
|
|
{
|
|
return;
|
|
}
|
|
Delegate @delegate = delegates[1];
|
|
Delegate delegate2 = delegates[0];
|
|
uint num3;
|
|
if (@delegate.method_info == num3)
|
|
{
|
|
throw new ExecutionEngineException();
|
|
}
|
|
ExecutionEngineException ex;
|
|
if (ex != 0)
|
|
{
|
|
}
|
|
if (delegate2 != 0 && @delegate.method_info != num3 && @delegate == (ulong)1L)
|
|
{
|
|
MethodInfo method_info = @delegate.method_info;
|
|
int num4 = 0;
|
|
num4 += num4;
|
|
num4++;
|
|
num4 += num4;
|
|
num4 += method_info;
|
|
num4 += 19;
|
|
uint num5;
|
|
num5 += num5;
|
|
uint num6;
|
|
num6 += (uint)19;
|
|
}
|
|
num++;
|
|
}
|
|
|
|
// Token: 0x06000586 RID: 1414 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6000586")]
|
|
[Address(RVA = "0x564230", Offset = "0x563230", VA = "0x180564230", Slot = "14")]
|
|
public IAsyncResult BeginInvoke(AsyncCallback AFLPGGJMPOE, object FEDFKKMABOG)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000587 RID: 1415 RVA: 0x0001CDA0 File Offset: 0x0001AFA0
|
|
[Token(Token = "0x6000587")]
|
|
[Address(RVA = "0x56AA00", Offset = "0x569A00", VA = "0x18056AA00", Slot = "15")]
|
|
public bool EndInvoke(IAsyncResult GIAOBLMEMMI)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
}
|