237 lines
10 KiB
C#
237 lines
10 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200008B RID: 139
|
|
[Token(Token = "0x200008B")]
|
|
[StructLayout(3)]
|
|
public class LaundryBinPickup : RigidbodyPickup
|
|
{
|
|
// Token: 0x17000095 RID: 149
|
|
// (get) Token: 0x060003CF RID: 975 RVA: 0x00013354 File Offset: 0x00011554
|
|
[Token(Token = "0x17000095")]
|
|
public override bool CAAMFILPNBL
|
|
{
|
|
[Token(Token = "0x60003CF")]
|
|
[Address(RVA = "0x1258990", Offset = "0x1257390", VA = "0x181258990", Slot = "15")]
|
|
get
|
|
{
|
|
Joint dindjgiipki = this.DINDJGIIPKI;
|
|
int num = 0;
|
|
return dindjgiipki != num;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000096 RID: 150
|
|
// (get) Token: 0x060003D0 RID: 976 RVA: 0x00013374 File Offset: 0x00011574
|
|
[Token(Token = "0x17000096")]
|
|
public override Vector3 EHAINJEAMKF
|
|
{
|
|
[Token(Token = "0x60003D0")]
|
|
[Address(RVA = "0x12589F0", Offset = "0x12573F0", VA = "0x1812589F0", Slot = "16")]
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000097 RID: 151
|
|
// (get) Token: 0x060003D1 RID: 977 RVA: 0x00013390 File Offset: 0x00011590
|
|
[Token(Token = "0x17000097")]
|
|
public override Quaternion IKNMCIEGEHH
|
|
{
|
|
[Token(Token = "0x60003D1")]
|
|
[Address(RVA = "0x1258A70", Offset = "0x1257470", VA = "0x181258A70", Slot = "17")]
|
|
get
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060003D2 RID: 978 RVA: 0x000133A4 File Offset: 0x000115A4
|
|
[Token(Token = "0x60003D2")]
|
|
[Address(RVA = "0x1258180", Offset = "0x1256B80", VA = "0x181258180", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
Tool egfejghdnai = this.EGFEJGHDNAI;
|
|
Tool.IHPELPFHCOO ihpelpfhcoo = new Tool.IHPELPFHCOO(this.DEGLIEMIECJ);
|
|
egfejghdnai.CustomSnapToHandBehavior = ihpelpfhcoo;
|
|
this.EGFEJGHDNAI.HeldCollisionLayer = (DAJFOCGPHGP)((ulong)10L);
|
|
Tool egfejghdnai2 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> preReleaseEvent = egfejghdnai2.PreReleaseEvent;
|
|
Action<Tool> action = new Action(this.NJHKGOBLNJP);
|
|
ActionEvent<Tool> actionEvent = preReleaseEvent + action;
|
|
egfejghdnai2.PreReleaseEvent = actionEvent;
|
|
Tool egfejghdnai3 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> postReleaseEvent = egfejghdnai3.PostReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.PFLAPOOECDN);
|
|
ActionEvent<Tool> actionEvent2 = postReleaseEvent + action2;
|
|
egfejghdnai3.PostReleaseEvent = actionEvent2;
|
|
}
|
|
|
|
// Token: 0x060003D3 RID: 979 RVA: 0x00013448 File Offset: 0x00011648
|
|
[Token(Token = "0x60003D3")]
|
|
[Address(RVA = "0x1258600", Offset = "0x1257000", VA = "0x181258600", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
Tool egfejghdnai = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> preReleaseEvent = egfejghdnai.PreReleaseEvent;
|
|
Action<Tool> action = new Action(this.NJHKGOBLNJP);
|
|
ActionEvent<Tool> actionEvent = preReleaseEvent - action;
|
|
egfejghdnai.PreReleaseEvent = actionEvent;
|
|
Tool egfejghdnai2 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> postReleaseEvent = egfejghdnai2.PostReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.PFLAPOOECDN);
|
|
ActionEvent<Tool> actionEvent2 = postReleaseEvent - action2;
|
|
egfejghdnai2.PostReleaseEvent = actionEvent2;
|
|
}
|
|
|
|
// Token: 0x060003D4 RID: 980 RVA: 0x000134C0 File Offset: 0x000116C0
|
|
[Token(Token = "0x60003D4")]
|
|
[Address(RVA = "0x12585C0", Offset = "0x1256FC0", VA = "0x1812585C0")]
|
|
private void NJHKGOBLNJP(Tool NBHJPDBHDHB)
|
|
{
|
|
RigidbodyConstraints constraints = this.AFEBLJOIBBC.KKNFLCLMNDN;
|
|
}
|
|
|
|
// Token: 0x060003D5 RID: 981 RVA: 0x000134E0 File Offset: 0x000116E0
|
|
[Token(Token = "0x60003D5")]
|
|
[Address(RVA = "0x1258710", Offset = "0x1257110", VA = "0x181258710")]
|
|
private void PFLAPOOECDN(Tool NBHJPDBHDHB)
|
|
{
|
|
RigidbodyConstraints constraints = this.AFEBLJOIBBC.KKNFLCLMNDN;
|
|
}
|
|
|
|
// Token: 0x060003D6 RID: 982 RVA: 0x00013500 File Offset: 0x00011700
|
|
[Token(Token = "0x60003D6")]
|
|
[Address(RVA = "0x1258750", Offset = "0x1257150", VA = "0x181258750", Slot = "19")]
|
|
public override void Pickup(RigidbodyEx HEGDAEMJLDE, Vector3 ELAEGHLPCPL, Quaternion PNPNGOLPEFF)
|
|
{
|
|
float z = ELAEGHLPCPL.z;
|
|
Joint joint;
|
|
this.DINDJGIIPKI = joint;
|
|
}
|
|
|
|
// Token: 0x060003D7 RID: 983 RVA: 0x0001351C File Offset: 0x0001171C
|
|
[Token(Token = "0x60003D7")]
|
|
[Address(RVA = "0x12587E0", Offset = "0x12571E0", VA = "0x1812587E0", Slot = "20")]
|
|
public override void Release()
|
|
{
|
|
Joint dindjgiipki = this.DINDJGIIPKI;
|
|
int num = 0;
|
|
if (dindjgiipki != num)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.DINDJGIIPKI);
|
|
this.DINDJGIIPKI = (ulong)0L;
|
|
}
|
|
Scheduler instance = SingletonMonoBehaviour.Instance;
|
|
LaundryBinPickup.DLJOMEMPFCL dljomempfcl;
|
|
dljomempfcl.System.IDisposable.Dispose();
|
|
dljomempfcl.<>1__state = (int)((ulong)0L);
|
|
dljomempfcl.<>4__this = this;
|
|
ISchedulerPromise schedulerPromise = instance.Run(this, dljomempfcl);
|
|
}
|
|
|
|
// Token: 0x060003D8 RID: 984 RVA: 0x0001357C File Offset: 0x0001177C
|
|
[Token(Token = "0x60003D8")]
|
|
[Address(RVA = "0x12582E0", Offset = "0x1256CE0", VA = "0x1812582E0")]
|
|
private IEnumerator<ISchedule> CODCPFDJGMI()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060003D8)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> LaundryBinPickup::CODCPFDJGMI()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(DLJOMEMPFCL::System.IDisposable.Dispose, ldloc:DLJOMEMPFCL(var_0))
|
|
stfld:int32(DLJOMEMPFCL::<>1__state, ldloc:DLJOMEMPFCL(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:LaundryBinPickup(DLJOMEMPFCL::<>4__this, ldloc:DLJOMEMPFCL(var_0), ldloc:LaundryBinPickup(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: 0x060003D9 RID: 985 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x60003D9")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60")]
|
|
private void DEGLIEMIECJ()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060003DA RID: 986 RVA: 0x000135A0 File Offset: 0x000117A0
|
|
[Token(Token = "0x60003DA")]
|
|
[Address(RVA = "0x1258340", Offset = "0x1256D40", VA = "0x181258340")]
|
|
private Joint IFILBMKOPAA(RigidbodyEx HEGDAEMJLDE, Vector3 ELAEGHLPCPL, Quaternion PNPNGOLPEFF)
|
|
{
|
|
ConfigurableJoint configurableJoint = base.gameObject.AddComponent<ConfigurableJoint>();
|
|
int num = 0;
|
|
configurableJoint.autoConfigureConnectedAnchor = num != 0;
|
|
Transform transform = base.transform;
|
|
Rigidbody unityRigidbody = HEGDAEMJLDE.unityRigidbody;
|
|
configurableJoint.connectedBody = unityRigidbody;
|
|
int num2 = 0;
|
|
Vector3 zero = Vector3.zero;
|
|
configurableJoint.connectedAnchor = num2;
|
|
configurableJoint.configuredInWorldSpace = true;
|
|
configurableJoint.xMotion = ConfigurableJointMotion.Limited;
|
|
configurableJoint.yMotion = ConfigurableJointMotion.Free;
|
|
configurableJoint.zMotion = ConfigurableJointMotion.Limited;
|
|
configurableJoint.angularXMotion = ConfigurableJointMotion.Free;
|
|
configurableJoint.angularYMotion = ConfigurableJointMotion.Free;
|
|
configurableJoint.angularZMotion = ConfigurableJointMotion.Free;
|
|
SoftJointLimit linearLimit = configurableJoint.linearLimit;
|
|
int num3 = 0;
|
|
SoftJointLimitSpring linearLimitSpring = configurableJoint.linearLimitSpring;
|
|
configurableJoint.linearLimitSpring = num3;
|
|
configurableJoint.breakForce = float.PositiveInfinity;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060003DB RID: 987 RVA: 0x00013648 File Offset: 0x00011848
|
|
[Token(Token = "0x60003DB")]
|
|
[Address(RVA = "0x1258920", Offset = "0x1257320", VA = "0x181258920")]
|
|
public LaundryBinPickup()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000358 RID: 856
|
|
[Token(Token = "0x4000358")]
|
|
private const float CMKPKLJFCOC = 0.001f;
|
|
|
|
// Token: 0x04000359 RID: 857
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x4000359")]
|
|
[SerializeField]
|
|
[Header("Joint Parameters")]
|
|
private float spring = 1000f;
|
|
|
|
// Token: 0x0400035A RID: 858
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xDC")]
|
|
[Token(Token = "0x400035A")]
|
|
[SerializeField]
|
|
private float damper = 200f;
|
|
|
|
// Token: 0x0400035B RID: 859
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x400035B")]
|
|
private Joint DINDJGIIPKI;
|
|
}
|