237 lines
11 KiB
C#
237 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Tools.MakerPenTools
|
|
{
|
|
// Token: 0x02002A69 RID: 10857
|
|
[Token(Token = "0x2002A69")]
|
|
public class MakerPenHandle : MonoBehaviour
|
|
{
|
|
// Token: 0x1700330C RID: 13068
|
|
// (get) Token: 0x0601242E RID: 74798 RVA: 0x0042CA6C File Offset: 0x0042AC6C
|
|
// (set) Token: 0x0601242F RID: 74799 RVA: 0x0042CA80 File Offset: 0x0042AC80
|
|
[Token(Token = "0x1700330C")]
|
|
public bool EEEJCDEJMJN
|
|
{
|
|
[Token(Token = "0x601242E")]
|
|
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
|
|
get;
|
|
[Token(Token = "0x601242F")]
|
|
[Address(RVA = "0x43DE90", Offset = "0x43CC90", VA = "0x18043DE90")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700330D RID: 13069
|
|
// (get) Token: 0x06012430 RID: 74800 RVA: 0x0042CA94 File Offset: 0x0042AC94
|
|
// (set) Token: 0x06012431 RID: 74801 RVA: 0x0042CAA8 File Offset: 0x0042ACA8
|
|
[Token(Token = "0x1700330D")]
|
|
public bool PGDLMFLDIFJ
|
|
{
|
|
[Token(Token = "0x6012430")]
|
|
[Address(RVA = "0x50FC80", Offset = "0x50EA80", VA = "0x18050FC80")]
|
|
get;
|
|
[Token(Token = "0x6012431")]
|
|
[Address(RVA = "0x745E50", Offset = "0x744C50", VA = "0x180745E50")]
|
|
set;
|
|
} = true;
|
|
|
|
// Token: 0x1700330E RID: 13070
|
|
// (get) Token: 0x06012432 RID: 74802 RVA: 0x0042CABC File Offset: 0x0042ACBC
|
|
// (set) Token: 0x06012433 RID: 74803 RVA: 0x0042CAD0 File Offset: 0x0042ACD0
|
|
[Token(Token = "0x1700330E")]
|
|
public bool AMFGGFFKDIC
|
|
{
|
|
[Token(Token = "0x6012432")]
|
|
[Address(RVA = "0x761D60", Offset = "0x760B60", VA = "0x180761D60")]
|
|
get
|
|
{
|
|
return this.OKKKLJNEPDJ;
|
|
}
|
|
[Token(Token = "0x6012433")]
|
|
[Address(RVA = "0x1308F00", Offset = "0x1307D00", VA = "0x181308F00")]
|
|
set
|
|
{
|
|
bool okkkljnepdj = this.OKKKLJNEPDJ;
|
|
if (okkkljnepdj != value)
|
|
{
|
|
if (!okkkljnepdj)
|
|
{
|
|
}
|
|
MFBGLIHGCGO<MakerPenHandle> hoverEnded = MakerPenHandle.HoverEnded;
|
|
if (hoverEnded != 0)
|
|
{
|
|
hoverEnded.CNFDGDEOPPF(this);
|
|
}
|
|
}
|
|
this.OKKKLJNEPDJ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700330F RID: 13071
|
|
// (get) Token: 0x06012434 RID: 74804 RVA: 0x0042CB04 File Offset: 0x0042AD04
|
|
// (set) Token: 0x06012435 RID: 74805 RVA: 0x0042CB18 File Offset: 0x0042AD18
|
|
[Token(Token = "0x1700330F")]
|
|
public MakerPenHandle.FNHHECGOJKM KLPGMBEFHPA
|
|
{
|
|
[Token(Token = "0x6012434")]
|
|
[Address(RVA = "0x41F5B0", Offset = "0x41E3B0", VA = "0x18041F5B0")]
|
|
get;
|
|
[Token(Token = "0x6012435")]
|
|
[Address(RVA = "0x41F730", Offset = "0x41E530", VA = "0x18041F730")]
|
|
protected set;
|
|
}
|
|
|
|
// Token: 0x06012436 RID: 74806 RVA: 0x0042CB2C File Offset: 0x0042AD2C
|
|
[Token(Token = "0x6012436")]
|
|
[Address(RVA = "0x13089C0", Offset = "0x13077C0", VA = "0x1813089C0", Slot = "4")]
|
|
public virtual Vector3 GetHandleCollisionPos()
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012437 RID: 74807 RVA: 0x0042CB48 File Offset: 0x0042AD48
|
|
[Token(Token = "0x6012437")]
|
|
[Address(RVA = "0x1308A50", Offset = "0x1307850", VA = "0x181308A50", Slot = "5")]
|
|
public virtual Vector3 GetLocalHandleOffset()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06012437)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector3 RecRoom.Tools.MakerPenTools.MakerPenHandle::GetLocalHandleOffset()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:float32(var_0_0A, ldfld:float32(Vector3::z, callgetter:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Vector3::get_zero)))
|
|
}
|
|
|
|
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: 0x06012438 RID: 74808 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6012438")]
|
|
[Address(RVA = "0x1308AC0", Offset = "0x13078C0", VA = "0x181308AC0", Slot = "6")]
|
|
public virtual float GetLocalHandleSize()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06012439 RID: 74809 RVA: 0x0042CB60 File Offset: 0x0042AD60
|
|
[Token(Token = "0x6012439")]
|
|
[Address(RVA = "0x1308AD0", Offset = "0x13078D0", VA = "0x181308AD0", Slot = "7")]
|
|
public virtual bool RayCast(Ray OPMKFDNLHKI, ref float JDPIDIMJMBA)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06012439)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean RecRoom.Tools.MakerPenTools.MakerPenHandle::RayCast(UnityEngine.Ray,System.Single&)
|
|
|
|
---> 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: 0x0601243A RID: 74810 RVA: 0x0042CBDC File Offset: 0x0042ADDC
|
|
[Token(Token = "0x601243A")]
|
|
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "8")]
|
|
public virtual OJCIMLNJIOB CreateState<T>(ANECMOONIPJ<T> LHOMKMINCHH, CreationController KAMOHEPMEIF, Vector3 MMEIDGMCHNK)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601243B RID: 74811 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601243B")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "9")]
|
|
public virtual void OnClicked<T>(ANECMOONIPJ<T> LHOMKMINCHH, CreationController KAMOHEPMEIF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601243C RID: 74812 RVA: 0x0042CBEC File Offset: 0x0042ADEC
|
|
[Token(Token = "0x601243C")]
|
|
[Address(RVA = "0xAED3A0", Offset = "0xAEC1A0", VA = "0x180AED3A0")]
|
|
public MakerPenHandle()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601243D RID: 74813 RVA: 0x0042CC08 File Offset: 0x0042AE08
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x601243D")]
|
|
[Address(RVA = "0x1308E50", Offset = "0x1307C50", VA = "0x181308E50")]
|
|
static MakerPenHandle()
|
|
{
|
|
int num;
|
|
int num2;
|
|
MFBGLIHGCGO<MakerPenHandle> mfbglihgcgo = new MFBGLIHGCGO(4, num != 0, num2 != 0);
|
|
num2 = 0;
|
|
num = 0;
|
|
MakerPenHandle.HoverStarted = mfbglihgcgo;
|
|
int num3;
|
|
int num4;
|
|
MFBGLIHGCGO<MakerPenHandle> mfbglihgcgo2 = new MFBGLIHGCGO(4, num3 != 0, num4 != 0);
|
|
num4 = 0;
|
|
num3 = 0;
|
|
MakerPenHandle.HoverEnded = mfbglihgcgo2;
|
|
}
|
|
|
|
// Token: 0x0400BC5C RID: 48220
|
|
[Token(Token = "0x400BC5C")]
|
|
public static MFBGLIHGCGO<MakerPenHandle> HoverStarted;
|
|
|
|
// Token: 0x0400BC5D RID: 48221
|
|
[Token(Token = "0x400BC5D")]
|
|
public static MFBGLIHGCGO<MakerPenHandle> HoverEnded;
|
|
|
|
// Token: 0x0400BC60 RID: 48224
|
|
[FieldOffset(Offset = "0x1A")]
|
|
[Token(Token = "0x400BC60")]
|
|
private bool OKKKLJNEPDJ;
|
|
|
|
// Token: 0x02002A6A RID: 10858
|
|
[Token(Token = "0x2002A6A")]
|
|
public enum FNHHECGOJKM
|
|
{
|
|
// Token: 0x0400BC63 RID: 48227
|
|
[Token(Token = "0x400BC63")]
|
|
X,
|
|
// Token: 0x0400BC64 RID: 48228
|
|
[Token(Token = "0x400BC64")]
|
|
Y,
|
|
// Token: 0x0400BC65 RID: 48229
|
|
[Token(Token = "0x400BC65")]
|
|
Z,
|
|
// Token: 0x0400BC66 RID: 48230
|
|
[Token(Token = "0x400BC66")]
|
|
XY,
|
|
// Token: 0x0400BC67 RID: 48231
|
|
[Token(Token = "0x400BC67")]
|
|
XZ,
|
|
// Token: 0x0400BC68 RID: 48232
|
|
[Token(Token = "0x400BC68")]
|
|
YZ,
|
|
// Token: 0x0400BC69 RID: 48233
|
|
[Token(Token = "0x400BC69")]
|
|
XYZ
|
|
}
|
|
}
|
|
}
|