Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

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: 0x0600057D RID: 1405 RVA: 0x0001CA80 File Offset: 0x0001AC80
[Token(Token = "0x600057D")]
[Address(RVA = "0x16ADC30", Offset = "0x16ACA30", VA = "0x1816ADC30")]
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: 0x0600057E RID: 1406 RVA: 0x0001CB98 File Offset: 0x0001AD98
[Token(Token = "0x600057E")]
[Address(RVA = "0x16ADBC0", Offset = "0x16AC9C0", VA = "0x1816ADBC0")]
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: 0x0600057F RID: 1407 RVA: 0x0001CBCC File Offset: 0x0001ADCC
[Token(Token = "0x600057F")]
[Address(RVA = "0x16ADB60", Offset = "0x16AC960", VA = "0x1816ADB60")]
private IEnumerator OKCKJEBCGFM()
{
/*
An exception occurred when decompiling this method (0600057F)
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 1660
*/;
}
// Token: 0x06000580 RID: 1408 RVA: 0x0001CBF0 File Offset: 0x0001ADF0
[Token(Token = "0x6000580")]
[Address(RVA = "0x16AD9E0", Offset = "0x16AC7E0", VA = "0x1816AD9E0")]
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: 0x06000581 RID: 1409 RVA: 0x0001CC40 File Offset: 0x0001AE40
[Token(Token = "0x6000581")]
[Address(RVA = "0x16AD750", Offset = "0x16AC550", VA = "0x1816AD750")]
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: 0x06000582 RID: 1410 RVA: 0x0001CC94 File Offset: 0x0001AE94
[Token(Token = "0x6000582")]
[Address(RVA = "0x16ADEE0", Offset = "0x16ACCE0", VA = "0x1816ADEE0")]
public AutoReposition()
{
}
// Token: 0x04000490 RID: 1168
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000490")]
public float acceptableDistance_meters = 1.5f;
// Token: 0x04000491 RID: 1169
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4000491")]
public float acceptableLookAwayAngle_degrees = 60f;
// Token: 0x04000492 RID: 1170
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000492")]
public float timeBeforeResetForDistance = 0.5f;
// Token: 0x04000493 RID: 1171
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x4000493")]
public float timeBeforeResetForAngle = 2f;
// Token: 0x04000494 RID: 1172
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000494")]
public Transform transformToMonitor;
// Token: 0x04000495 RID: 1173
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000495")]
[SerializeField]
private bool useDefaultPositioning = true;
// Token: 0x04000496 RID: 1174
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4000496")]
[SerializeField]
private float defaultDistFromVRCamera = 0.75f;
// Token: 0x04000497 RID: 1175
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000497")]
[SerializeField]
private float defaultDistFromScreenCamera = 1.25f;
// Token: 0x04000498 RID: 1176
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000498")]
[SerializeField]
private float defaultHeightOffset = -0.1f;
// Token: 0x04000499 RID: 1177
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000499")]
public IEnumerator OnResetRequired;
// Token: 0x0400049A RID: 1178
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400049A")]
public AutoReposition.MCDAMIEKBJP CustomShouldRunLogic;
// Token: 0x0400049B RID: 1179
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400049B")]
private float OAGMGPOKFIN;
// Token: 0x0400049C RID: 1180
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x400049C")]
private float LJEEGPMKNFE;
// Token: 0x0400049D RID: 1181
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400049D")]
private bool LMJPGEHCMBH;
// Token: 0x020000D8 RID: 216
[Token(Token = "0x20000D8")]
public sealed class MCDAMIEKBJP : MulticastDelegate
{
// Token: 0x06000583 RID: 1411 RVA: 0x0001CCFC File Offset: 0x0001AEFC
[Token(Token = "0x6000583")]
[Address(RVA = "0x448ED0", Offset = "0x447CD0", VA = "0x180448ED0")]
public MCDAMIEKBJP(object FEDFKKMABOG, IntPtr APAICGIHAGJ)
{
this.method = APAICGIHAGJ;
this.m_target = FEDFKKMABOG;
}
// Token: 0x06000584 RID: 1412 RVA: 0x0001CD18 File Offset: 0x0001AF18
[Token(Token = "0x6000584")]
[Address(RVA = "0x76B2E0", Offset = "0x76A0E0", VA = "0x18076B2E0", 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: 0x06000585 RID: 1413 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6000585")]
[Address(RVA = "0x456AA0", Offset = "0x4558A0", VA = "0x180456AA0", Slot = "14")]
public IAsyncResult BeginInvoke(AsyncCallback AFLPGGJMPOE, object FEDFKKMABOG)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06000586 RID: 1414 RVA: 0x0001CDBC File Offset: 0x0001AFBC
[Token(Token = "0x6000586")]
[Address(RVA = "0x451890", Offset = "0x450690", VA = "0x180451890", Slot = "15")]
public bool EndInvoke(IAsyncResult GIAOBLMEMMI)
{
throw new NullReferenceException();
}
}
}