433 lines
14 KiB
C#
433 lines
14 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x02002084 RID: 8324
|
|
[Token(Token = "0x2002084")]
|
|
public class ToolSet : MonoBehaviourPun
|
|
{
|
|
// Token: 0x140000D4 RID: 212
|
|
// (add) Token: 0x0600D4C4 RID: 54468 RVA: 0x00313C14 File Offset: 0x00311E14
|
|
// (remove) Token: 0x0600D4C5 RID: 54469 RVA: 0x00313C3C File Offset: 0x00311E3C
|
|
[Token(Token = "0x140000D4")]
|
|
public event Action<List<Tool>> NMADIKJAHGL
|
|
{
|
|
[Token(Token = "0x600D4C4")]
|
|
[Address(RVA = "0xAE28B0", Offset = "0xAE16B0", VA = "0x180AE28B0")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Action<List<Tool>> nmadikjahgl;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
nmadikjahgl = this.NMADIKJAHGL;
|
|
@delegate = Delegate.Combine(nmadikjahgl, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != nmadikjahgl)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x600D4C5")]
|
|
[Address(RVA = "0xAE29F0", Offset = "0xAE17F0", VA = "0x180AE29F0")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Action<List<Tool>> nmadikjahgl;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
nmadikjahgl = this.NMADIKJAHGL;
|
|
@delegate = Delegate.Remove(nmadikjahgl, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != nmadikjahgl)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x140000D5 RID: 213
|
|
// (add) Token: 0x0600D4C6 RID: 54470 RVA: 0x00313C64 File Offset: 0x00311E64
|
|
// (remove) Token: 0x0600D4C7 RID: 54471 RVA: 0x00313C8C File Offset: 0x00311E8C
|
|
[Token(Token = "0x140000D5")]
|
|
public event Action NLKEKMGDOHM
|
|
{
|
|
[Token(Token = "0x600D4C6")]
|
|
[Address(RVA = "0xAE2950", Offset = "0xAE1750", VA = "0x180AE2950")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Action nlkekmgdohm;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
nlkekmgdohm = this.NLKEKMGDOHM;
|
|
@delegate = Delegate.Combine(nlkekmgdohm, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != nlkekmgdohm)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x600D4C7")]
|
|
[Address(RVA = "0xAE2A90", Offset = "0xAE1890", VA = "0x180AE2A90")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Action nlkekmgdohm;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
nlkekmgdohm = this.NLKEKMGDOHM;
|
|
@delegate = Delegate.Remove(nlkekmgdohm, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != nlkekmgdohm)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D4C8 RID: 54472 RVA: 0x00313CB4 File Offset: 0x00311EB4
|
|
[Token(Token = "0x600D4C8")]
|
|
[Address(RVA = "0xAE18A0", Offset = "0xAE06A0", VA = "0x180AE18A0")]
|
|
public void AddDeploymentRestriction(object PIHIPPPPEBI)
|
|
{
|
|
this.JHLMOLPNOMG.BPAJKKAGPKB(PIHIPPPPEBI);
|
|
}
|
|
|
|
// Token: 0x0600D4C9 RID: 54473 RVA: 0x00313CD4 File Offset: 0x00311ED4
|
|
[Token(Token = "0x600D4C9")]
|
|
[Address(RVA = "0x929B80", Offset = "0x928980", VA = "0x180929B80")]
|
|
public void RemoveDeploymentRestriction(object PIHIPPPPEBI)
|
|
{
|
|
this.JHLMOLPNOMG.BIHKNNPGGKP(PIHIPPPPEBI);
|
|
}
|
|
|
|
// Token: 0x0600D4CA RID: 54474 RVA: 0x00313CF4 File Offset: 0x00311EF4
|
|
[Token(Token = "0x600D4CA")]
|
|
[Address(RVA = "0xAE18D0", Offset = "0xAE06D0", VA = "0x180AE18D0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base..ctor();
|
|
Tool tool = this.tool;
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PAEFCHDJPHF);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postReleaseEvent, action);
|
|
tool.PostReleaseEvent = mfbglihgcgo;
|
|
Tool tool2 = this.tool;
|
|
MFBGLIHGCGO<Tool> postPickupEvent = tool2.PostPickupEvent;
|
|
Action<Tool> action2 = new Action(this.DNJCMIAPIOO);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo2 = MFBGLIHGCGO.BPJDFPACLMK(postPickupEvent, action2);
|
|
tool2.PostPickupEvent = mfbglihgcgo2;
|
|
}
|
|
|
|
// Token: 0x0600D4CB RID: 54475 RVA: 0x00313D6C File Offset: 0x00311F6C
|
|
[Token(Token = "0x600D4CB")]
|
|
[Address(RVA = "0xAE27A0", Offset = "0xAE15A0", VA = "0x180AE27A0")]
|
|
private void Start()
|
|
{
|
|
Action<float> action = new Action(this.EEPBNAMKKFH);
|
|
IDisposable disposable = ADIFCODGAML.FOFJADGKNJF(this, action);
|
|
}
|
|
|
|
// Token: 0x0600D4CC RID: 54476 RVA: 0x00313D90 File Offset: 0x00311F90
|
|
[Token(Token = "0x600D4CC")]
|
|
[Address(RVA = "0xAE2360", Offset = "0xAE1160", VA = "0x180AE2360", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
Tool tool = this.tool;
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PAEFCHDJPHF);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(postReleaseEvent, action);
|
|
tool.PostReleaseEvent = mfbglihgcgo;
|
|
Tool tool2 = this.tool;
|
|
MFBGLIHGCGO<Tool> postPickupEvent = tool2.PostPickupEvent;
|
|
Action<Tool> action2 = new Action(this.DNJCMIAPIOO);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo2 = MFBGLIHGCGO.GMNMHGMFGOL(postPickupEvent, action2);
|
|
tool2.PostPickupEvent = mfbglihgcgo2;
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0600D4CD RID: 54477 RVA: 0x00313E08 File Offset: 0x00312008
|
|
[Token(Token = "0x600D4CD")]
|
|
[Address(RVA = "0xAE1D70", Offset = "0xAE0B70", VA = "0x180AE1D70")]
|
|
private void OJIMMPDBAKN()
|
|
{
|
|
int num = 0;
|
|
if ((this.LOIBGHBPHJF ? 1 : 0) != num)
|
|
{
|
|
RigidbodyEx rigidbodyEx = this.tool.rigidbodyEx;
|
|
if (rigidbodyEx.IsSleeping())
|
|
{
|
|
}
|
|
RigidbodyEx rigidbodyEx2 = this.tool.rigidbodyEx;
|
|
Vector3 angularVelocity = rigidbodyEx.KHJFDILDLAD;
|
|
RigidbodyEx rigidbodyEx3 = this.tool.rigidbodyEx;
|
|
Vector3 velocity = rigidbodyEx.NHAOMEMANJA;
|
|
int num2 = 0;
|
|
if (!this.JHLMOLPNOMG.CFLJGNJLBFG && num2 != 0 && base.JDHMIOJKLCK.AHNNNIPLFGD && this.pieces != (ulong)0L)
|
|
{
|
|
Transform transform = base.transform;
|
|
Vector3 up = Vector3.up;
|
|
float num3;
|
|
if (num3 > 0.9f)
|
|
{
|
|
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
ToolSet.IBEECBMOPON ibeecbmopon;
|
|
ibeecbmopon.System.IDisposable.Dispose();
|
|
ibeecbmopon.<>1__state = (int)((ulong)0L);
|
|
ibeecbmopon.<>4__this = 0;
|
|
if (instance != 0)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
Transform transform2 = base.transform;
|
|
Vector3 up2 = Vector3.up;
|
|
Transform transform3 = base.transform;
|
|
float num4;
|
|
if (num4 > 0.7f)
|
|
{
|
|
}
|
|
Vector3 up3 = Vector3.up;
|
|
Vector3 up4 = Vector3.up;
|
|
Transform transform4 = base.transform;
|
|
int num5 = 0;
|
|
Vector3 up5 = Vector3.up;
|
|
transform4.rotation = num5;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D4CE RID: 54478 RVA: 0x00313F24 File Offset: 0x00312124
|
|
[Token(Token = "0x600D4CE")]
|
|
[Address(RVA = "0xAE2300", Offset = "0xAE1100", VA = "0x180AE2300")]
|
|
private IEnumerator<KENFJGFMIPM> OMIGOBFMHCC()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600D4CE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> RecRoom.ToolSet::OMIGOBFMHCC()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(IBEECBMOPON::System.IDisposable.Dispose, ldloc:IBEECBMOPON(var_0))
|
|
stfld:int32(IBEECBMOPON::<>1__state, ldloc:IBEECBMOPON(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:ToolSet(IBEECBMOPON::<>4__this, ldloc:IBEECBMOPON(var_0), ldloc:ToolSet(this))
|
|
}
|
|
|
|
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: 0x0600D4CF RID: 54479 RVA: 0x00313F48 File Offset: 0x00312148
|
|
[Token(Token = "0x600D4CF")]
|
|
[Address(RVA = "0xA8A480", Offset = "0xA89280", VA = "0x180A8A480")]
|
|
private void PAEFCHDJPHF(Tool EGFEJGHDNAI)
|
|
{
|
|
this.LOIBGHBPHJF = true;
|
|
}
|
|
|
|
// Token: 0x0600D4D0 RID: 54480 RVA: 0x00313F5C File Offset: 0x0031215C
|
|
[Token(Token = "0x600D4D0")]
|
|
[Address(RVA = "0x75D280", Offset = "0x75C080", VA = "0x18075D280")]
|
|
private void DNJCMIAPIOO(Tool EGFEJGHDNAI)
|
|
{
|
|
this.LOIBGHBPHJF = false;
|
|
}
|
|
|
|
// Token: 0x0600D4D1 RID: 54481 RVA: 0x00313F70 File Offset: 0x00312170
|
|
[Token(Token = "0x600D4D1")]
|
|
[Address(RVA = "0xAE19E0", Offset = "0xAE07E0", VA = "0x180AE19E0")]
|
|
protected void OIHHCDHMJHH()
|
|
{
|
|
if (!this.IGKNPPJINLL)
|
|
{
|
|
List<Tool> list = new List();
|
|
ToolSet.ToolPiece[] array = this.pieces;
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
num++;
|
|
Transform transform = base.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform2 = base.transform;
|
|
int num2 = 0;
|
|
Tool tool;
|
|
if (tool != num2)
|
|
{
|
|
list.Add(tool);
|
|
}
|
|
num++;
|
|
}
|
|
Action<List<Tool>> nmadikjahgl = this.NMADIKJAHGL;
|
|
if (nmadikjahgl != 0)
|
|
{
|
|
nmadikjahgl(list);
|
|
}
|
|
KKPBCOOONNK.JAKJLFDNEJA(base.gameObject);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D4D2 RID: 54482 RVA: 0x00314000 File Offset: 0x00312200
|
|
[Token(Token = "0x600D4D2")]
|
|
[Address(RVA = "0xAE2460", Offset = "0xAE1260", VA = "0x180AE2460")]
|
|
private void OnDrawGizmos()
|
|
{
|
|
ToolSet.ToolPiece[] array = this.pieces;
|
|
if (array != 0)
|
|
{
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
num++;
|
|
Transform transform = base.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Color green = Color.green;
|
|
Color blue = Color.blue;
|
|
Transform transform2 = base.transform;
|
|
Transform transform3 = base.transform;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D4D3 RID: 54483 RVA: 0x00314074 File Offset: 0x00312274
|
|
[Token(Token = "0x600D4D3")]
|
|
[Address(RVA = "0xAE2810", Offset = "0xAE1610", VA = "0x180AE2810")]
|
|
public ToolSet()
|
|
{
|
|
AOLMGGAPKEH aolmggapkeh = new AOLMGGAPKEH();
|
|
this.JHLMOLPNOMG = aolmggapkeh;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0600D4D4 RID: 54484 RVA: 0x003140C0 File Offset: 0x003122C0
|
|
[Token(Token = "0x600D4D4")]
|
|
[Address(RVA = "0xAE19D0", Offset = "0xAE07D0", VA = "0x180AE19D0")]
|
|
[CompilerGenerated]
|
|
private void EEPBNAMKKFH(float CEHJGNDELGL)
|
|
{
|
|
this.OJIMMPDBAKN();
|
|
}
|
|
|
|
// Token: 0x0400884C RID: 34892
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400884C")]
|
|
[SerializeField]
|
|
private ToolSet.ToolPiece[] pieces;
|
|
|
|
// Token: 0x0400884D RID: 34893
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400884D")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400884E RID: 34894
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400884E")]
|
|
[SerializeField]
|
|
private float deploymentDelayTime;
|
|
|
|
// Token: 0x0400884F RID: 34895
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400884F")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip onDeploySFX;
|
|
|
|
// Token: 0x04008850 RID: 34896
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4008850")]
|
|
[SerializeField]
|
|
private AudioRolloff audioRolloff = new AudioRolloff
|
|
{
|
|
minDistance = 0f,
|
|
maxDistance = 12f
|
|
};
|
|
|
|
// Token: 0x04008851 RID: 34897
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4008851")]
|
|
private bool LOIBGHBPHJF;
|
|
|
|
// Token: 0x04008852 RID: 34898
|
|
[FieldOffset(Offset = "0x79")]
|
|
[Token(Token = "0x4008852")]
|
|
private bool IGKNPPJINLL;
|
|
|
|
// Token: 0x04008853 RID: 34899
|
|
[FieldOffset(Offset = "0x7A")]
|
|
[Token(Token = "0x4008853")]
|
|
private bool CMEMKBANNAI;
|
|
|
|
// Token: 0x04008854 RID: 34900
|
|
[FieldOffset(Offset = "0x7B")]
|
|
[Token(Token = "0x4008854")]
|
|
private bool LNDPLAMGJDA;
|
|
|
|
// Token: 0x04008855 RID: 34901
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4008855")]
|
|
private AOLMGGAPKEH JHLMOLPNOMG;
|
|
|
|
// Token: 0x02002085 RID: 8325
|
|
[Token(Token = "0x2002085")]
|
|
[Serializable]
|
|
public struct ToolPiece
|
|
{
|
|
// Token: 0x170021D9 RID: 8665
|
|
// (get) Token: 0x0600D4D5 RID: 54485 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x170021D9")]
|
|
public Quaternion initRotation
|
|
{
|
|
[Token(Token = "0x600D4D5")]
|
|
[Address(RVA = "0xAE1810", Offset = "0xAE0610", VA = "0x180AE1810")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x04008856 RID: 34902
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4008856")]
|
|
public Tool tool;
|
|
|
|
// Token: 0x04008857 RID: 34903
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4008857")]
|
|
public Vector3 initPosition;
|
|
|
|
// Token: 0x04008858 RID: 34904
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x4008858")]
|
|
public Vector3 initRotationEuler;
|
|
}
|
|
}
|
|
}
|