154 lines
6.3 KiB
C#
154 lines
6.3 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Tools
|
|
{
|
|
// Token: 0x02002AE7 RID: 10983
|
|
[Token(Token = "0x2002AE7")]
|
|
public class GrabInteractionBase : MonoBehaviourPun
|
|
{
|
|
// Token: 0x0601242E RID: 74798 RVA: 0x00425424 File Offset: 0x00423624
|
|
[Token(Token = "0x601242E")]
|
|
[Address(RVA = "0x1D6D3D0", Offset = "0x1D6C3D0", VA = "0x181D6D3D0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0601242E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Tools.GrabInteractionBase::Awake()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_A3:
|
|
stloc:ArgumentNullException(var_13_AD, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("Error: missing reference for tool in GrabInteractionBAse.cs")))
|
|
}
|
|
|
|
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: 0x0601242F RID: 74799 RVA: 0x004254E0 File Offset: 0x004236E0
|
|
[Token(Token = "0x601242F")]
|
|
[Address(RVA = "0x1D6D730", Offset = "0x1D6C730", VA = "0x181D6D730", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
Action nlkekmgdohm;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
ToolSet toolSet = this.toolSet;
|
|
int num = 0;
|
|
if (!(toolSet != num))
|
|
{
|
|
goto IL_37;
|
|
}
|
|
nlkekmgdohm = this.toolSet.NLKEKMGDOHM;
|
|
Action action;
|
|
@delegate = Delegate.Remove(nlkekmgdohm, action);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != nlkekmgdohm)
|
|
{
|
|
}
|
|
IL_37:
|
|
Tool tool = this.grabTool;
|
|
int num2 = 0;
|
|
if (tool != num2)
|
|
{
|
|
Tool tool2 = this.grabTool;
|
|
Action<Tool> action2;
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(tool2.PostPickupEvent, action2);
|
|
tool2.PostPickupEvent = mfbglihgcgo;
|
|
}
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x06012430 RID: 74800 RVA: 0x00425568 File Offset: 0x00423768
|
|
[Token(Token = "0x6012430")]
|
|
[Address(RVA = "0x1D6D630", Offset = "0x1D6C630", VA = "0x181D6D630")]
|
|
protected void ICOBNOOOPOK(Tool EGFEJGHDNAI)
|
|
{
|
|
int num = 0;
|
|
EGFEJGHDNAI.MBHKHNNAKBB = num != 0;
|
|
RigidbodyEx rigidbodyEx = EGFEJGHDNAI.rigidbodyEx;
|
|
int num2 = 0;
|
|
if (rigidbodyEx != num2)
|
|
{
|
|
EGFEJGHDNAI.rigidbodyEx.AddKinematic(this);
|
|
EGFEJGHDNAI.ReleaseWithVelocity = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012431 RID: 74801 RVA: 0x004255AC File Offset: 0x004237AC
|
|
[Token(Token = "0x6012431")]
|
|
[Address(RVA = "0x1D6D6E0", Offset = "0x1D6C6E0", VA = "0x181D6D6E0")]
|
|
protected void LNNKHBJMNDE()
|
|
{
|
|
this.grabTool.MBHKHNNAKBB = true;
|
|
this.grabToolRigidBody.detectCollisions = true;
|
|
this.grabToolMeshRenderer.enabled = true;
|
|
}
|
|
|
|
// Token: 0x06012432 RID: 74802 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6012432")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "15")]
|
|
protected virtual void NLKEKMGDOHM()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06012433 RID: 74803 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6012433")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "16")]
|
|
protected virtual void AGDLNOODPGF(Tool EGFEJGHDNAI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06012434 RID: 74804 RVA: 0x004255E4 File Offset: 0x004237E4
|
|
[Token(Token = "0x6012434")]
|
|
[Address(RVA = "0x8E9790", Offset = "0x8E8790", VA = "0x1808E9790")]
|
|
public GrabInteractionBase()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400BC01 RID: 48129
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400BC01")]
|
|
[SerializeField]
|
|
protected Tool tool;
|
|
|
|
// Token: 0x0400BC02 RID: 48130
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400BC02")]
|
|
[SerializeField]
|
|
protected ToolSet toolSet;
|
|
|
|
// Token: 0x0400BC03 RID: 48131
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400BC03")]
|
|
[SerializeField]
|
|
protected Tool grabTool;
|
|
|
|
// Token: 0x0400BC04 RID: 48132
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400BC04")]
|
|
[SerializeField]
|
|
protected Rigidbody grabToolRigidBody;
|
|
|
|
// Token: 0x0400BC05 RID: 48133
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400BC05")]
|
|
[SerializeField]
|
|
protected MeshRenderer grabToolMeshRenderer;
|
|
}
|
|
}
|