237 lines
11 KiB
C#
237 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Tools.MakerPenTools
|
|
{
|
|
// Token: 0x02002B52 RID: 11090
|
|
[Token(Token = "0x2002B52")]
|
|
public class MakerPenHandle : MonoBehaviour
|
|
{
|
|
// Token: 0x170033C0 RID: 13248
|
|
// (get) Token: 0x0601286B RID: 75883 RVA: 0x004366F0 File Offset: 0x004348F0
|
|
// (set) Token: 0x0601286C RID: 75884 RVA: 0x00436704 File Offset: 0x00434904
|
|
[Token(Token = "0x170033C0")]
|
|
public bool EEEJCDEJMJN
|
|
{
|
|
[Token(Token = "0x601286B")]
|
|
[Address(RVA = "0x497570", Offset = "0x496570", VA = "0x180497570")]
|
|
get;
|
|
[Token(Token = "0x601286C")]
|
|
[Address(RVA = "0x611070", Offset = "0x610070", VA = "0x180611070")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170033C1 RID: 13249
|
|
// (get) Token: 0x0601286D RID: 75885 RVA: 0x00436718 File Offset: 0x00434918
|
|
// (set) Token: 0x0601286E RID: 75886 RVA: 0x0043672C File Offset: 0x0043492C
|
|
[Token(Token = "0x170033C1")]
|
|
public bool PGDLMFLDIFJ
|
|
{
|
|
[Token(Token = "0x601286D")]
|
|
[Address(RVA = "0x696850", Offset = "0x695850", VA = "0x180696850")]
|
|
get;
|
|
[Token(Token = "0x601286E")]
|
|
[Address(RVA = "0x69ADD0", Offset = "0x699DD0", VA = "0x18069ADD0")]
|
|
set;
|
|
} = true;
|
|
|
|
// Token: 0x170033C2 RID: 13250
|
|
// (get) Token: 0x0601286F RID: 75887 RVA: 0x00436740 File Offset: 0x00434940
|
|
// (set) Token: 0x06012870 RID: 75888 RVA: 0x00436754 File Offset: 0x00434954
|
|
[Token(Token = "0x170033C2")]
|
|
public bool AMFGGFFKDIC
|
|
{
|
|
[Token(Token = "0x601286F")]
|
|
[Address(RVA = "0x6A45D0", Offset = "0x6A35D0", VA = "0x1806A45D0")]
|
|
get
|
|
{
|
|
return this.OKKKLJNEPDJ;
|
|
}
|
|
[Token(Token = "0x6012870")]
|
|
[Address(RVA = "0x1916DC0", Offset = "0x1915DC0", VA = "0x181916DC0")]
|
|
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: 0x170033C3 RID: 13251
|
|
// (get) Token: 0x06012871 RID: 75889 RVA: 0x00436788 File Offset: 0x00434988
|
|
// (set) Token: 0x06012872 RID: 75890 RVA: 0x0043679C File Offset: 0x0043499C
|
|
[Token(Token = "0x170033C3")]
|
|
public MakerPenHandle.FNHHECGOJKM KLPGMBEFHPA
|
|
{
|
|
[Token(Token = "0x6012871")]
|
|
[Address(RVA = "0x497590", Offset = "0x496590", VA = "0x180497590")]
|
|
get;
|
|
[Token(Token = "0x6012872")]
|
|
[Address(RVA = "0x50A2B0", Offset = "0x5092B0", VA = "0x18050A2B0")]
|
|
protected set;
|
|
}
|
|
|
|
// Token: 0x06012873 RID: 75891 RVA: 0x004367B0 File Offset: 0x004349B0
|
|
[Token(Token = "0x6012873")]
|
|
[Address(RVA = "0x1916880", Offset = "0x1915880", VA = "0x181916880", Slot = "4")]
|
|
public virtual Vector3 GetHandleCollisionPos()
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012874 RID: 75892 RVA: 0x004367CC File Offset: 0x004349CC
|
|
[Token(Token = "0x6012874")]
|
|
[Address(RVA = "0x1916910", Offset = "0x1915910", VA = "0x181916910", Slot = "5")]
|
|
public virtual Vector3 GetLocalHandleOffset()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06012874)
|
|
|
|
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: 0x06012875 RID: 75893 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6012875")]
|
|
[Address(RVA = "0x1916980", Offset = "0x1915980", VA = "0x181916980", Slot = "6")]
|
|
public virtual float GetLocalHandleSize()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06012876 RID: 75894 RVA: 0x004367E4 File Offset: 0x004349E4
|
|
[Token(Token = "0x6012876")]
|
|
[Address(RVA = "0x1916990", Offset = "0x1915990", VA = "0x181916990", Slot = "7")]
|
|
public virtual bool RayCast(Ray OPMKFDNLHKI, ref float JDPIDIMJMBA)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06012876)
|
|
|
|
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 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: 0x06012877 RID: 75895 RVA: 0x00436860 File Offset: 0x00434A60
|
|
[Token(Token = "0x6012877")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "8")]
|
|
public virtual OJCIMLNJIOB CreateState<T>(ANECMOONIPJ<T> LHOMKMINCHH, CreationController KAMOHEPMEIF, Vector3 MMEIDGMCHNK)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06012878 RID: 75896 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6012878")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x06012879 RID: 75897 RVA: 0x00436870 File Offset: 0x00434A70
|
|
[Token(Token = "0x6012879")]
|
|
[Address(RVA = "0x1434080", Offset = "0x1433080", VA = "0x181434080")]
|
|
public MakerPenHandle()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601287A RID: 75898 RVA: 0x0043688C File Offset: 0x00434A8C
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x601287A")]
|
|
[Address(RVA = "0x1916D10", Offset = "0x1915D10", VA = "0x181916D10")]
|
|
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: 0x0400BE6D RID: 48749
|
|
[Token(Token = "0x400BE6D")]
|
|
public static MFBGLIHGCGO<MakerPenHandle> HoverStarted;
|
|
|
|
// Token: 0x0400BE6E RID: 48750
|
|
[Token(Token = "0x400BE6E")]
|
|
public static MFBGLIHGCGO<MakerPenHandle> HoverEnded;
|
|
|
|
// Token: 0x0400BE71 RID: 48753
|
|
[FieldOffset(Offset = "0x1A")]
|
|
[Token(Token = "0x400BE71")]
|
|
private bool OKKKLJNEPDJ;
|
|
|
|
// Token: 0x02002B53 RID: 11091
|
|
[Token(Token = "0x2002B53")]
|
|
public enum FNHHECGOJKM
|
|
{
|
|
// Token: 0x0400BE74 RID: 48756
|
|
[Token(Token = "0x400BE74")]
|
|
X,
|
|
// Token: 0x0400BE75 RID: 48757
|
|
[Token(Token = "0x400BE75")]
|
|
Y,
|
|
// Token: 0x0400BE76 RID: 48758
|
|
[Token(Token = "0x400BE76")]
|
|
Z,
|
|
// Token: 0x0400BE77 RID: 48759
|
|
[Token(Token = "0x400BE77")]
|
|
XY,
|
|
// Token: 0x0400BE78 RID: 48760
|
|
[Token(Token = "0x400BE78")]
|
|
XZ,
|
|
// Token: 0x0400BE79 RID: 48761
|
|
[Token(Token = "0x400BE79")]
|
|
YZ,
|
|
// Token: 0x0400BE7A RID: 48762
|
|
[Token(Token = "0x400BE7A")]
|
|
XYZ
|
|
}
|
|
}
|
|
}
|