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: 0x02002D9A RID: 11674
|
|
[Token(Token = "0x2002D9A")]
|
|
[CreateAssetMenu]
|
|
public class ScreenPlayerRangedWeaponCrosshairSettings : ScriptableObject
|
|
{
|
|
// Token: 0x06013B4A RID: 80714 RVA: 0x0048F70C File Offset: 0x0048D90C
|
|
[Token(Token = "0x6013B4A")]
|
|
[Address(RVA = "0x6A46E0", Offset = "0x6A36E0", VA = "0x1806A46E0")]
|
|
public float FIHECFFBHBB()
|
|
{
|
|
return this.dynamicTickDistanceChangeTime;
|
|
}
|
|
|
|
// Token: 0x06013B4B RID: 80715 RVA: 0x0048F720 File Offset: 0x0048D920
|
|
[Token(Token = "0x6013B4B")]
|
|
[Address(RVA = "0x1564B10", Offset = "0x1563B10", VA = "0x181564B10")]
|
|
public float KNMAPKJNCNP(Player IEKDDPPNFPF, bool KCHDNDCGCIA)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06013B4B)
|
|
|
|
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 403
|
|
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: 0x06013B4C RID: 80716 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6013B4C")]
|
|
[Address(RVA = "0x1564C20", Offset = "0x1563C20", VA = "0x181564C20")]
|
|
public ScreenHUDCrosshair.OHGAJAANMEE FPPFAIJJDEG()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06013B4D RID: 80717 RVA: 0x0048F78C File Offset: 0x0048D98C
|
|
[Token(Token = "0x6013B4D")]
|
|
[Address(RVA = "0x1564C60", Offset = "0x1563C60", VA = "0x181564C60")]
|
|
public ScreenPlayerRangedWeaponCrosshairSettings()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400CC7F RID: 52351
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400CC7F")]
|
|
[SerializeField]
|
|
[Header("Canonical Tick Spread")]
|
|
private float canonicalTickDistanceViewportSpace = 0.05f;
|
|
|
|
// Token: 0x0400CC80 RID: 52352
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x400CC80")]
|
|
[SerializeField]
|
|
[Header("Dynamic Tick Spread")]
|
|
private float dynamicTickDistanceChangeTime = 0.2f;
|
|
|
|
// Token: 0x0400CC81 RID: 52353
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400CC81")]
|
|
[SerializeField]
|
|
private float walkingTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CC82 RID: 52354
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x400CC82")]
|
|
[SerializeField]
|
|
private float sprintingTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CC83 RID: 52355
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400CC83")]
|
|
[SerializeField]
|
|
private float crouchingTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CC84 RID: 52356
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x400CC84")]
|
|
[SerializeField]
|
|
private float proneTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CC85 RID: 52357
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400CC85")]
|
|
[SerializeField]
|
|
private float aimDownSightsTickDistanceScaler = 1f;
|
|
|
|
// Token: 0x0400CC86 RID: 52358
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x400CC86")]
|
|
[SerializeField]
|
|
[Header("Ticks Toggle")]
|
|
private bool topTickEnabled = true;
|
|
|
|
// Token: 0x0400CC87 RID: 52359
|
|
[FieldOffset(Offset = "0x35")]
|
|
[Token(Token = "0x400CC87")]
|
|
[SerializeField]
|
|
private bool bottomTickEnabled;
|
|
|
|
// Token: 0x0400CC88 RID: 52360
|
|
[FieldOffset(Offset = "0x36")]
|
|
[Token(Token = "0x400CC88")]
|
|
[SerializeField]
|
|
private bool leftTickEnabled;
|
|
|
|
// Token: 0x0400CC89 RID: 52361
|
|
[FieldOffset(Offset = "0x37")]
|
|
[Token(Token = "0x400CC89")]
|
|
[SerializeField]
|
|
private bool rightTickEnabled;
|
|
}
|
|
}
|