Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

323 lines
16 KiB
C#

using System;
using Cpp2IlInjected;
using RecRoom;
using RecRoom.Inputs;
using UnityEngine;
// Token: 0x020025BF RID: 9663
[Token(Token = "0x20025BF")]
public abstract class DNLCJBNPBCM<Runtime, Config> : MNFHEDHBMOI<Runtime, Config> where Runtime : DNLCJBNPBCM<Runtime, Config>, new() where Config : LegacyInputSourceConfig<Runtime, Config>
{
// Token: 0x0600F696 RID: 63126 RVA: 0x003842B8 File Offset: 0x003824B8
[Token(Token = "0x600F696")]
[Address(RVA = "0x20E8260", Offset = "0x20E7260", VA = "0x1820E8260", Slot = "8")]
public override GIJDAILECFF FFBOPLOEHJI(InputConfig JDFFACACBAC)
{
if (!this.BIEPCPJNODI())
{
return GIJDAILECFF.None;
}
throw new NullReferenceException();
}
// Token: 0x0600F697 RID: 63127 RVA: 0x003842D8 File Offset: 0x003824D8
[Token(Token = "0x600F697")]
[Address(RVA = "0x20E7E80", Offset = "0x20E6E80", VA = "0x1820E7E80", Slot = "10")]
public override bool DIDLCLEIJAD(InputConfig JDFFACACBAC, out bool PPOGALJAIDC)
{
int num = 0;
if (this.BIEPCPJNODI())
{
bool flag = this.HJEGFOKDPGM(num);
PPOGALJAIDC.m_value = flag;
if (num != 0)
{
bool flag2 = this.HJEGFOKDPGM(num);
PPOGALJAIDC.m_value = flag2;
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x0600F698 RID: 63128 RVA: 0x0038431C File Offset: 0x0038251C
[Token(Token = "0x600F698")]
[Address(RVA = "0x20E8410", Offset = "0x20E7410", VA = "0x1820E8410", Slot = "11")]
public override bool GNDLKAMDCDJ(InputConfig JDFFACACBAC, out float NGALLBAFEEP, out bool GMMAEBJGBMF)
{
if (this.BIEPCPJNODI())
{
GMMAEBJGBMF.m_value = false;
return true;
}
throw new NullReferenceException();
}
// Token: 0x0600F699 RID: 63129 RVA: 0x00384344 File Offset: 0x00382544
[Token(Token = "0x600F699")]
[Address(RVA = "0x20E84F0", Offset = "0x20E74F0", VA = "0x1820E84F0", Slot = "12")]
public override bool GNMHPKFABHA(InputConfig JDFFACACBAC, out Vector2 EDPHCMNAJLB, out bool GMMAEBJGBMF)
{
int num = 0;
if (this.BIEPCPJNODI())
{
EDPHCMNAJLB.x = (float)0;
GMMAEBJGBMF.m_value = num != 0;
return true;
}
Vector2 zero = Vector2.zero;
EDPHCMNAJLB.x = zero;
EDPHCMNAJLB.y = (float)0;
throw new NullReferenceException();
}
// Token: 0x0600F69A RID: 63130 RVA: 0x0038438C File Offset: 0x0038258C
[Token(Token = "0x600F69A")]
[Address(RVA = "0x20E7DE0", Offset = "0x20E6DE0", VA = "0x1820E7DE0", Slot = "13")]
public override bool AKGKNCEBCFL(InputConfig PBGBNMCPEAJ, out KIJMAEEMGLG IDPMCDJPKDO)
{
/*
An exception occurred when decompiling this method (0600F69A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean DNLCJBNPBCM::AKGKNCEBCFL(RecRoom.Inputs.InputConfig,KIJMAEEMGLG&)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:KIJMAEEMGLG(var_0_05, callgetter:KIJMAEEMGLG(KIJMAEEMGLG::CMECIAKCEEN))
stloc:float32(var_1_0C, ldfld:float32(KIJMAEEMGLG::NLJECFCFAJA, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05)))
stloc:bool(var_2_13, ldfld:bool(KIJMAEEMGLG::EIPADKJDEIO, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05)))
stloc:float32(var_3_1F, ldfld:float32(Vector2::y, ldfld:Vector2[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector2&](KIJMAEEMGLG::BHOLMEFMIMG, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05))))
stloc:int32(var_4_26, ldfld:int32(KIJMAEEMGLG::EDNNCCFDMCJ, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05)))
stloc:float32(var_5_33, ldfld:float32(Vector2::y, ldfld:Vector2[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector2&](KIJMAEEMGLG::IODDGJBEOMI, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05))))
stloc:Vector2(var_6_3B, ldfld:Vector2(KIJMAEEMGLG::ICKCCANHPHG, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05)))
stloc:Vector2(var_7_43, ldfld:Vector2(KIJMAEEMGLG::NIDCGNKLLOH, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05)))
stloc:Vector2(var_8_4B, ldfld:Vector2(KIJMAEEMGLG::APCOJCJNKPO, ldloc:KIJMAEEMGLG[exp:valuetype KIJMAEEMGLG&](var_0_05)))
stfld:int32(KIJMAEEMGLG::EDNNCCFDMCJ, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO), ldloc:int32(var_4_26))
stfld:float32(Vector2::y, ldfld:Vector2[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector2&](KIJMAEEMGLG::IODDGJBEOMI, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO)), ldloc:float32(var_5_33))
stfld:Vector2(KIJMAEEMGLG::ICKCCANHPHG, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO), ldloc:Vector2(var_6_3B))
stfld:Vector2(KIJMAEEMGLG::NIDCGNKLLOH, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO), ldloc:Vector2(var_7_43))
stfld:Vector2(KIJMAEEMGLG::APCOJCJNKPO, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO), ldloc:Vector2(var_8_4B))
stfld:float32(KIJMAEEMGLG::NLJECFCFAJA, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO), ldloc:float32(var_1_0C))
stfld:float32(Vector2::y, ldfld:Vector2[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector2&](KIJMAEEMGLG::BHOLMEFMIMG, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO)), ldloc:float32(var_3_1F))
stfld:bool(KIJMAEEMGLG::EIPADKJDEIO, ldloc:valuetype KIJMAEEMGLG&(IDPMCDJPKDO), ldloc:bool(var_2_13))
}
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: 0x0600F69B RID: 63131 RVA: 0x00384430 File Offset: 0x00382630
[Token(Token = "0x600F69B")]
[Address(RVA = "0x20E8790", Offset = "0x20E7790", VA = "0x1820E8790", Slot = "14")]
public override bool JLHNHBDJJHL(out IFCNMNFEGAM GBIALMBEPED)
{
/*
An exception occurred when decompiling this method (0600F69B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean DNLCJBNPBCM::JLHNHBDJJHL(IFCNMNFEGAM&)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:IFCNMNFEGAM(var_0_05, callgetter:IFCNMNFEGAM(IFCNMNFEGAM::CMECIAKCEEN))
stloc:float32(var_1_11, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](IFCNMNFEGAM::PHMMKNJHDJO, ldloc:IFCNMNFEGAM[exp:valuetype IFCNMNFEGAM&](var_0_05))))
stloc:Vector3(var_2_18, ldfld:Vector3(IFCNMNFEGAM::HEJBIFGHJOD, ldloc:IFCNMNFEGAM[exp:valuetype IFCNMNFEGAM&](var_0_05)))
stloc:float32(var_3_24, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](IFCNMNFEGAM::GBABMHBIGFJ, ldloc:IFCNMNFEGAM[exp:valuetype IFCNMNFEGAM&](var_0_05))))
stfld:Vector3(IFCNMNFEGAM::HEJBIFGHJOD, ldloc:valuetype IFCNMNFEGAM&(GBIALMBEPED), ldloc:Vector3(var_2_18))
stfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](IFCNMNFEGAM::GBABMHBIGFJ, ldloc:valuetype IFCNMNFEGAM&(GBIALMBEPED)), ldloc:float32(var_3_24))
stfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](IFCNMNFEGAM::PHMMKNJHDJO, ldloc:valuetype IFCNMNFEGAM&(GBIALMBEPED)), ldloc:float32(var_1_11))
}
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: 0x0600F69C RID: 63132 RVA: 0x00384484 File Offset: 0x00382684
[Token(Token = "0x600F69C")]
[Address(RVA = "0x20E87D0", Offset = "0x20E77D0", VA = "0x1820E87D0", Slot = "15")]
public override bool KJDKANJIGDD(out Vector2 CAMHGFHDIHB)
{
float z = Input.mousePosition.z;
Vector2 vector;
CAMHGFHDIHB.x = vector;
CAMHGFHDIHB.y = (float)0;
return true;
}
// Token: 0x0600F69D RID: 63133
[Token(Token = "0x600F69D")]
[Address(Slot = "26")]
protected abstract bool BHBGIHPJOMI(InputConfig JDFFACACBAC, out LegacyInputConfiguration FJGEFIHPHBJ, out LegacyInputConfiguration POBDHCIAHLB);
// Token: 0x0600F69E RID: 63134 RVA: 0x003844AC File Offset: 0x003826AC
[Token(Token = "0x600F69E")]
[Address(RVA = "0x20E7F50", Offset = "0x20E6F50", VA = "0x1820E7F50")]
protected bool EICFBGOOMDF(LegacyInputConfiguration FJGEFIHPHBJ)
{
GIJDAILECFF inputType = FJGEFIHPHBJ.inputType;
if (inputType != GIJDAILECFF.Button)
{
if (inputType != GIJDAILECFF.Axis1D)
{
if (inputType != GIJDAILECFF.Axis2D)
{
}
LegacyInputAxis2DConfiguration axis2DConfiguration = FJGEFIHPHBJ.axis2DConfiguration;
Vector2 vector = this.FDIELKFPCAB(axis2DConfiguration);
}
LegacyInputAxis1DConfiguration axis1DConfiguration = FJGEFIHPHBJ.axis1DConfiguration;
float num = this.LKHHGELFPLO(axis1DConfiguration);
}
LegacyInputButtonConfiguration buttonConfiguration = FJGEFIHPHBJ.buttonConfiguration;
return this.HJEGFOKDPGM(buttonConfiguration);
}
// Token: 0x0600F69F RID: 63135 RVA: 0x0038450C File Offset: 0x0038270C
[Token(Token = "0x600F69F")]
[Address(RVA = "0x20E8620", Offset = "0x20E7620", VA = "0x1820E8620")]
protected bool HJEGFOKDPGM(LegacyInputButtonConfiguration PBGBNMCPEAJ)
{
int num = 0;
if (this.GJIKMPIMDHH() && PBGBNMCPEAJ.sourceType != HKCDKBOECAL.Discrete)
{
string continuousSourceName = PBGBNMCPEAJ.continuousSourceName;
float num2 = this.DAIMLDAHBNF(continuousSourceName);
if ((PBGBNMCPEAJ.continuousSourceGoesNegative ? 1 : 0) != num)
{
}
float num3 = Mathf.Sign(num2);
}
bool flag;
return flag;
}
// Token: 0x0600F6A0 RID: 63136 RVA: 0x00384554 File Offset: 0x00382754
[Token(Token = "0x600F6A0")]
[Address(RVA = "0x20E8870", Offset = "0x20E7870", VA = "0x1820E8870")]
protected float LKHHGELFPLO(LegacyInputAxis1DConfiguration PBGBNMCPEAJ)
{
float num;
if (this.GJIKMPIMDHH())
{
HKCDKBOECAL sourceType = PBGBNMCPEAJ.sourceType;
if (sourceType != HKCDKBOECAL.Continuous)
{
if (sourceType != HKCDKBOECAL.Discrete)
{
return num;
}
bool flag;
if (flag)
{
}
bool flag2;
if (!flag2)
{
}
}
string continuousSourceName = PBGBNMCPEAJ.continuousSourceName;
num = this.DAIMLDAHBNF(continuousSourceName);
LegacyInputAxis1DConfiguration.KDFGJACBJFC axisRemapping = PBGBNMCPEAJ.axisRemapping;
if (axisRemapping == LegacyInputAxis1DConfiguration.KDFGJACBJFC.NegativeOneToPositiveOne || axisRemapping == LegacyInputAxis1DConfiguration.KDFGJACBJFC.ZeroToNegativeOne)
{
float num2 = Mathf.InverseLerp(-1f, 1f, num);
num = num2;
}
}
return num;
}
// Token: 0x0600F6A1 RID: 63137 RVA: 0x003845C8 File Offset: 0x003827C8
[Token(Token = "0x600F6A1")]
[Address(RVA = "0x20E80C0", Offset = "0x20E70C0", VA = "0x1820E80C0")]
protected Vector2 FDIELKFPCAB(LegacyInputAxis2DConfiguration PBGBNMCPEAJ)
{
if (this.GJIKMPIMDHH())
{
HKCDKBOECAL sourceType = PBGBNMCPEAJ.sourceType;
if (sourceType != HKCDKBOECAL.Continuous)
{
if (sourceType != HKCDKBOECAL.Discrete)
{
goto IL_4D;
}
bool flag;
if (flag)
{
}
bool flag2;
if (flag2)
{
}
bool flag3;
if (flag3)
{
}
bool flag4;
if (!flag4)
{
}
}
string continuousHorizontalSourceName = PBGBNMCPEAJ.continuousHorizontalSourceName;
float num = this.DAIMLDAHBNF(continuousHorizontalSourceName);
string continuousVerticalSourceName = PBGBNMCPEAJ.continuousVerticalSourceName;
float num2 = this.DAIMLDAHBNF(continuousVerticalSourceName);
}
IL_4D:
throw new NullReferenceException();
}
// Token: 0x0600F6A2 RID: 63138 RVA: 0x00384628 File Offset: 0x00382828
[Token(Token = "0x600F6A2")]
[Address(RVA = "0x20E7E70", Offset = "0x20E6E70", VA = "0x1820E7E70", Slot = "27")]
protected virtual bool DANEIAIKNDM(KeyCode DNGKIAJLLHG)
{
}
// Token: 0x0600F6A3 RID: 63139 RVA: 0x00384638 File Offset: 0x00382838
[Token(Token = "0x600F6A3")]
[Address(RVA = "0x811030", Offset = "0x810030", VA = "0x180811030")]
private float DAIMLDAHBNF(string HGCNCLNJECB)
{
return Input.GetAxisRaw(HGCNCLNJECB);
}
// Token: 0x0600F6A4 RID: 63140 RVA: 0x0038464C File Offset: 0x0038284C
[Token(Token = "0x600F6A4")]
[Address(RVA = "0x20E82C0", Offset = "0x20E72C0", VA = "0x1820E82C0")]
private bool GJIKMPIMDHH()
{
LocalPlayerController instance = SingletonMonoBehaviour.ONCPNMDGGKG;
int num = 0;
return instance == num || SingletonMonoBehaviour.ONCPNMDGGKG.IGEPCCNGILJ;
}
// Token: 0x0600F6A5 RID: 63141 RVA: 0x00384680 File Offset: 0x00382880
[Token(Token = "0x600F6A5")]
[Address(RVA = "0x20E89F0", Offset = "0x20E79F0", VA = "0x1820E89F0")]
protected DNLCJBNPBCM()
{
}
// Token: 0x0400A37D RID: 41853
[Token(Token = "0x400A37D")]
private const float LFHBNGKHPNO = 0.25f;
// Token: 0x0400A37E RID: 41854
[Token(Token = "0x400A37E")]
private const float ILFHMLLFHCP = 0.0625f;
}