144 lines
6.2 KiB
C#
144 lines
6.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Tools
|
|
{
|
|
// Token: 0x0200254B RID: 9547
|
|
[Token(Token = "0x200254B")]
|
|
[StructLayout(3)]
|
|
public class GrabInteractionBase : MonoBehaviourPun
|
|
{
|
|
// Token: 0x06010783 RID: 67459 RVA: 0x003DE480 File Offset: 0x003DC680
|
|
[Token(Token = "0x6010783")]
|
|
[Address(RVA = "0x1A67F80", Offset = "0x1A66980", VA = "0x181A67F80", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06010783)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Tools.GrabInteractionBase::Awake()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_92:
|
|
stloc:ArgumentNullException(var_12_9C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("Error: missing reference for grabTool 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: 0x06010784 RID: 67460 RVA: 0x003DE52C File Offset: 0x003DC72C
|
|
[Token(Token = "0x6010784")]
|
|
[Address(RVA = "0x1A68270", Offset = "0x1A66C70", VA = "0x181A68270", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
ToolSet toolSet = this.toolSet;
|
|
int num = 0;
|
|
if (toolSet != num)
|
|
{
|
|
Action action;
|
|
this.toolSet.NLKEKMGDOHM -= action;
|
|
}
|
|
Tool tool = this.grabTool;
|
|
int num2 = 0;
|
|
if (tool != num2)
|
|
{
|
|
Tool tool2 = this.grabTool;
|
|
Action<Tool> action2;
|
|
ActionEvent<Tool> actionEvent = tool2.PostPickupEvent - action2;
|
|
tool2.PostPickupEvent = actionEvent;
|
|
}
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x06010785 RID: 67461 RVA: 0x003DE59C File Offset: 0x003DC79C
|
|
[Token(Token = "0x6010785")]
|
|
[Address(RVA = "0x1A68170", Offset = "0x1A66B70", VA = "0x181A68170")]
|
|
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: 0x06010786 RID: 67462 RVA: 0x003DE5E0 File Offset: 0x003DC7E0
|
|
[Token(Token = "0x6010786")]
|
|
[Address(RVA = "0x1A68220", Offset = "0x1A66C20", VA = "0x181A68220")]
|
|
protected void LNNKHBJMNDE()
|
|
{
|
|
this.grabTool.MBHKHNNAKBB = true;
|
|
this.grabToolRigidBody.detectCollisions = true;
|
|
this.grabToolMeshRenderer.enabled = true;
|
|
}
|
|
|
|
// Token: 0x06010787 RID: 67463 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6010787")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "15")]
|
|
protected virtual void NLKEKMGDOHM()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06010788 RID: 67464 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6010788")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "16")]
|
|
protected virtual void AGDLNOODPGF(Tool EGFEJGHDNAI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06010789 RID: 67465 RVA: 0x003DE618 File Offset: 0x003DC818
|
|
[Token(Token = "0x6010789")]
|
|
[Address(RVA = "0x6A4030", Offset = "0x6A2A30", VA = "0x1806A4030")]
|
|
public GrabInteractionBase()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400AF7F RID: 44927
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400AF7F")]
|
|
[SerializeField]
|
|
protected Tool tool;
|
|
|
|
// Token: 0x0400AF80 RID: 44928
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400AF80")]
|
|
[SerializeField]
|
|
protected ToolSet toolSet;
|
|
|
|
// Token: 0x0400AF81 RID: 44929
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400AF81")]
|
|
[SerializeField]
|
|
protected Tool grabTool;
|
|
|
|
// Token: 0x0400AF82 RID: 44930
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400AF82")]
|
|
[SerializeField]
|
|
protected Rigidbody grabToolRigidBody;
|
|
|
|
// Token: 0x0400AF83 RID: 44931
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400AF83")]
|
|
[SerializeField]
|
|
protected MeshRenderer grabToolMeshRenderer;
|
|
}
|
|
}
|