130 lines
5.5 KiB
C#
130 lines
5.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.UI;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core
|
|
{
|
|
// Token: 0x02002CB1 RID: 11441
|
|
[Token(Token = "0x2002CB1")]
|
|
[CreateAssetMenu]
|
|
public class ScreenPlayerRangedWeaponCrosshairSettings : ScriptableObject
|
|
{
|
|
// Token: 0x06013709 RID: 79625 RVA: 0x00485884 File Offset: 0x00483A84
|
|
[Token(Token = "0x6013709")]
|
|
[Address(RVA = "0x763230", Offset = "0x762030", VA = "0x180763230")]
|
|
public float FIHECFFBHBB()
|
|
{
|
|
return this.dynamicTickDistanceChangeTime;
|
|
}
|
|
|
|
// Token: 0x0601370A RID: 79626 RVA: 0x00485898 File Offset: 0x00483A98
|
|
[Token(Token = "0x601370A")]
|
|
[Address(RVA = "0xA670C0", Offset = "0xA65EC0", VA = "0x180A670C0")]
|
|
public float KNMAPKJNCNP(Player IEKDDPPNFPF, bool KCHDNDCGCIA)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0601370A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single RecRoom.Core.ScreenPlayerRangedWeaponCrosshairSettings::KNMAPKJNCNP(Player,System.Boolean)
|
|
|
|
---> System.ArgumentOutOfRangeException: length ('-1') must be a non-negative value. (Parameter 'length')
|
|
Actual value was -1.
|
|
at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
|
|
at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
|
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 337
|
|
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 117
|
|
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: 0x0601370B RID: 79627 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601370B")]
|
|
[Address(RVA = "0xA671D0", Offset = "0xA65FD0", VA = "0x180A671D0")]
|
|
public ScreenHUDCrosshair.OHGAJAANMEE FPPFAIJJDEG()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601370C RID: 79628 RVA: 0x00485904 File Offset: 0x00483B04
|
|
[Token(Token = "0x601370C")]
|
|
[Address(RVA = "0xA67210", Offset = "0xA66010", VA = "0x180A67210")]
|
|
public ScreenPlayerRangedWeaponCrosshairSettings()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400CA6A RID: 51818
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400CA6A")]
|
|
[SerializeField]
|
|
[Header("Canonical Tick Spread")]
|
|
private float canonicalTickDistanceViewportSpace = 0.05f;
|
|
|
|
// Token: 0x0400CA6B RID: 51819
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x400CA6B")]
|
|
[SerializeField]
|
|
[Header("Dynamic Tick Spread")]
|
|
private float dynamicTickDistanceChangeTime = 0.2f;
|
|
|
|
// Token: 0x0400CA6C RID: 51820
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400CA6C")]
|
|
[SerializeField]
|
|
private float walkingTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CA6D RID: 51821
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x400CA6D")]
|
|
[SerializeField]
|
|
private float sprintingTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CA6E RID: 51822
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400CA6E")]
|
|
[SerializeField]
|
|
private float crouchingTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CA6F RID: 51823
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x400CA6F")]
|
|
[SerializeField]
|
|
private float proneTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CA70 RID: 51824
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400CA70")]
|
|
[SerializeField]
|
|
private float aimDownSightsTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CA71 RID: 51825
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x400CA71")]
|
|
[SerializeField]
|
|
[Header("Ticks Toggle")]
|
|
private bool topTickEnabled = true;
|
|
|
|
// Token: 0x0400CA72 RID: 51826
|
|
[FieldOffset(Offset = "0x35")]
|
|
[Token(Token = "0x400CA72")]
|
|
[SerializeField]
|
|
private bool bottomTickEnabled;
|
|
|
|
// Token: 0x0400CA73 RID: 51827
|
|
[FieldOffset(Offset = "0x36")]
|
|
[Token(Token = "0x400CA73")]
|
|
[SerializeField]
|
|
private bool leftTickEnabled;
|
|
|
|
// Token: 0x0400CA74 RID: 51828
|
|
[FieldOffset(Offset = "0x37")]
|
|
[Token(Token = "0x400CA74")]
|
|
[SerializeField]
|
|
private bool rightTickEnabled;
|
|
}
|
|
}
|