219 lines
9.7 KiB
C#
219 lines
9.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x02002008 RID: 8200
|
|
[Token(Token = "0x2002008")]
|
|
[Serializable]
|
|
public sealed class ScenePhysicsSettings : KCIGBIPBBBJ
|
|
{
|
|
// Token: 0x17002150 RID: 8528
|
|
// (get) Token: 0x0600D0B3 RID: 53427 RVA: 0x00301400 File Offset: 0x002FF600
|
|
[Token(Token = "0x17002150")]
|
|
public ScenePhysicsSettings.PhysicsLODSettings LODSettings
|
|
{
|
|
[Token(Token = "0x600D0B3")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.lodSettings;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D0B4 RID: 53428 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600D0B4")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "4")]
|
|
public void IHGCLBJNCCH(RecRoomSceneManager LJPBCKELDPM)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600D0B5 RID: 53429 RVA: 0x00301414 File Offset: 0x002FF614
|
|
[Token(Token = "0x600D0B5")]
|
|
[Address(RVA = "0x7AE060", Offset = "0x7ACE60", VA = "0x1807AE060", Slot = "5")]
|
|
public void DJFDPJKOGMJ()
|
|
{
|
|
float z = this.gravity.z;
|
|
Physics.bounceThreshold = this.bounceThreshold;
|
|
}
|
|
|
|
// Token: 0x0600D0B6 RID: 53430 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600D0B6")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "6")]
|
|
public void JCINJNBJMGN()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600D0B7 RID: 53431 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600D0B7")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "7")]
|
|
public void OPEMIFENIJM()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600D0B8 RID: 53432 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600D0B8")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "8")]
|
|
public void DFGGGKEBGHP()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600D0B9 RID: 53433 RVA: 0x00301438 File Offset: 0x002FF638
|
|
[Token(Token = "0x600D0B9")]
|
|
[Address(RVA = "0x7AE0A0", Offset = "0x7ACEA0", VA = "0x1807AE0A0")]
|
|
public ScenePhysicsSettings()
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
this.gravity.z = (float)num;
|
|
this.bounceThreshold = 2f;
|
|
this.IHGCLBJNCCH(num2);
|
|
}
|
|
|
|
// Token: 0x0400857A RID: 34170
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400857A")]
|
|
[SerializeField]
|
|
private Vector3 gravity;
|
|
|
|
// Token: 0x0400857B RID: 34171
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x400857B")]
|
|
[SerializeField]
|
|
private float bounceThreshold;
|
|
|
|
// Token: 0x0400857C RID: 34172
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400857C")]
|
|
[SerializeField]
|
|
private ScenePhysicsSettings.PhysicsLODSettings lodSettings;
|
|
|
|
// Token: 0x02002009 RID: 8201
|
|
[Token(Token = "0x2002009")]
|
|
[Serializable]
|
|
public sealed class PhysicsLODSettings
|
|
{
|
|
// Token: 0x0600D0BA RID: 53434 RVA: 0x00301468 File Offset: 0x002FF668
|
|
[Token(Token = "0x600D0BA")]
|
|
[Address(RVA = "0x7A3AC0", Offset = "0x7A28C0", VA = "0x1807A3AC0")]
|
|
public float EEIGFHPOPJH(EEDONNAHMFK EJJGPPDAPDJ)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600D0BA)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single RecRoom.ScenePhysicsSettings/PhysicsLODSettings::EEIGFHPOPJH(EEDONNAHMFK)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_54:
|
|
stloc:InvalidOperationException(var_5_65, newobj:InvalidOperationException(InvalidOperationException::.ctor, call:string(string::Format, ldstr:string("Unknown update LOD {0}!"), ldloc:NullReferenceException[exp:object](var_4))))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x0600D0BB RID: 53435 RVA: 0x003014DC File Offset: 0x002FF6DC
|
|
[Token(Token = "0x600D0BB")]
|
|
[Address(RVA = "0x7A3CB0", Offset = "0x7A2AB0", VA = "0x1807A3CB0")]
|
|
private void GCKHHECMAAK()
|
|
{
|
|
Dictionary<EEDONNAHMFK, float> dictionary = new Dictionary();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600D0BC RID: 53436 RVA: 0x0030152C File Offset: 0x002FF72C
|
|
[Token(Token = "0x600D0BC")]
|
|
[Address(RVA = "0x7A3E70", Offset = "0x7A2C70", VA = "0x1807A3E70")]
|
|
public PhysicsLODSettings()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400857D RID: 34173
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400857D")]
|
|
[SerializeField]
|
|
private float UnderTwoPointFiveMeterUpdateRate = -1f;
|
|
|
|
// Token: 0x0400857E RID: 34174
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x400857E")]
|
|
[SerializeField]
|
|
private float UnderFiveMeterUpdateRate = -1f;
|
|
|
|
// Token: 0x0400857F RID: 34175
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400857F")]
|
|
[SerializeField]
|
|
private float UnderTenMeterUpdateRate = 60f;
|
|
|
|
// Token: 0x04008580 RID: 34176
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4008580")]
|
|
[SerializeField]
|
|
private float UnderTwentyMeterUpdateRate = 30f;
|
|
|
|
// Token: 0x04008581 RID: 34177
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008581")]
|
|
[SerializeField]
|
|
private float UnderFiftyMeterUpdateRate = 10f;
|
|
|
|
// Token: 0x04008582 RID: 34178
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4008582")]
|
|
[SerializeField]
|
|
private float UnderHundredMeterUpdateRate = 2f;
|
|
|
|
// Token: 0x04008583 RID: 34179
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4008583")]
|
|
[SerializeField]
|
|
private float UnderFiveHundredMeterUpdateRate = 0.25f;
|
|
|
|
// Token: 0x04008584 RID: 34180
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x4008584")]
|
|
[SerializeField]
|
|
private float GreaterThanFiveHundredMeterUpdateRate = 0.01f;
|
|
|
|
// Token: 0x04008585 RID: 34181
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4008585")]
|
|
private Dictionary<EEDONNAHMFK, float> updateRates;
|
|
|
|
// Token: 0x04008586 RID: 34182
|
|
[Token(Token = "0x4008586")]
|
|
public static readonly ScenePhysicsSettings.PhysicsLODSettings DefaultPhysicsSettings = new ScenePhysicsSettings.PhysicsLODSettings
|
|
{
|
|
UnderTwoPointFiveMeterUpdateRate = -1f,
|
|
UnderFiveMeterUpdateRate = -1f,
|
|
UnderTenMeterUpdateRate = 60f,
|
|
UnderTwentyMeterUpdateRate = 30f,
|
|
UnderFiftyMeterUpdateRate = 10f,
|
|
UnderHundredMeterUpdateRate = 2f,
|
|
UnderFiveHundredMeterUpdateRate = 0.25f,
|
|
GreaterThanFiveHundredMeterUpdateRate = 0.01f
|
|
};
|
|
}
|
|
}
|
|
}
|