279 lines
11 KiB
C#
279 lines
11 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.DataStructures;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.Creation
|
|
{
|
|
// Token: 0x02002BE7 RID: 11239
|
|
[Token(Token = "0x2002BE7")]
|
|
[StructLayout(3)]
|
|
public class SandboxSet : MonoBehaviourPun
|
|
{
|
|
// Token: 0x170034E4 RID: 13540
|
|
// (get) Token: 0x06013CE2 RID: 81122 RVA: 0x004C064C File Offset: 0x004BE84C
|
|
[Token(Token = "0x170034E4")]
|
|
public Tool PBBJCLJPFMI
|
|
{
|
|
[Token(Token = "0x6013CE2")]
|
|
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")]
|
|
get
|
|
{
|
|
return this._tool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170034E5 RID: 13541
|
|
// (get) Token: 0x06013CE3 RID: 81123 RVA: 0x004C0660 File Offset: 0x004BE860
|
|
[Token(Token = "0x170034E5")]
|
|
public IEnumerable<SandboxSet.SandboxSetPiece> CPINLICOPBB
|
|
{
|
|
[Token(Token = "0x6013CE3")]
|
|
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06013CE3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<RecRoom.Core.Creation.SandboxSet/SandboxSetPiece> RecRoom.Core.Creation.SandboxSet::get_PieceData()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:valuetype RecRoom.Core.Creation.SandboxSet/SandboxSetPiece[](var_0_06, ldfld:valuetype RecRoom.Core.Creation.SandboxSet/SandboxSetPiece[](SandboxSet::pieces, ldloc:SandboxSet(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: 0x06013CE4 RID: 81124 RVA: 0x004C0674 File Offset: 0x004BE874
|
|
[Token(Token = "0x6013CE4")]
|
|
[Address(RVA = "0x16B77B0", Offset = "0x16B61B0", VA = "0x1816B77B0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base..ctor();
|
|
Tool tool = this._tool;
|
|
ActionEvent<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PAEFCHDJPHF);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent + action;
|
|
tool.PostReleaseEvent = actionEvent;
|
|
}
|
|
|
|
// Token: 0x06013CE5 RID: 81125 RVA: 0x004C06B8 File Offset: 0x004BE8B8
|
|
[Token(Token = "0x6013CE5")]
|
|
[Address(RVA = "0x16B82D0", Offset = "0x16B6CD0", VA = "0x1816B82D0")]
|
|
private void Start()
|
|
{
|
|
CreationObject creationObject = this._tool.creationObject;
|
|
int num = 0;
|
|
if (creationObject != num)
|
|
{
|
|
Action action = new Action(this.LDFJMNGEMOF);
|
|
ISchedulerPromise schedulerPromise = this.InvokeNextEndOfFrame(action);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013CE6 RID: 81126 RVA: 0x004C06F8 File Offset: 0x004BE8F8
|
|
[Token(Token = "0x6013CE6")]
|
|
[Address(RVA = "0x16B7C00", Offset = "0x16B6600", VA = "0x1816B7C00", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
Tool tool = this._tool;
|
|
ActionEvent<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PAEFCHDJPHF);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent - action;
|
|
tool.PostReleaseEvent = actionEvent;
|
|
CreationObject creationObject = this._tool.creationObject;
|
|
int num = 0;
|
|
if (creationObject != num)
|
|
{
|
|
CreationObject creationObject2 = this._tool.creationObject;
|
|
ActionEvent<CreationObject> lockedStatusChangedEvent = creationObject2.LockedStatusChangedEvent;
|
|
Action<CreationObject> action2 = new Action(this.PGHDLEGELAN);
|
|
ActionEvent<CreationObject> actionEvent2 = lockedStatusChangedEvent - action2;
|
|
creationObject2.LockedStatusChangedEvent = actionEvent2;
|
|
}
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x06013CE7 RID: 81127 RVA: 0x004C0790 File Offset: 0x004BE990
|
|
[Token(Token = "0x6013CE7")]
|
|
[Address(RVA = "0x16B8210", Offset = "0x16B6C10", VA = "0x1816B8210")]
|
|
private void PGHDLEGELAN(CreationObject KLGJPGEJGLA)
|
|
{
|
|
if (this._tool.creationObject == KLGJPGEJGLA && !KLGJPGEJGLA.FLLENDBIKGF.NLLONFJBKKP)
|
|
{
|
|
Tool tool = this._tool;
|
|
this.PAEFCHDJPHF(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013CE8 RID: 81128 RVA: 0x004C07D4 File Offset: 0x004BE9D4
|
|
[Token(Token = "0x6013CE8")]
|
|
[Address(RVA = "0x16B8040", Offset = "0x16B6A40", VA = "0x1816B8040")]
|
|
private void PAEFCHDJPHF(Tool EGFEJGHDNAI)
|
|
{
|
|
if (PhotonNetwork.IsMasterClient && this.pieces != (ulong)0L)
|
|
{
|
|
Tool tool = this._tool;
|
|
ActionEvent<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PAEFCHDJPHF);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent - action;
|
|
tool.PostReleaseEvent = actionEvent;
|
|
CreationObject creationObject = this._tool.creationObject;
|
|
int num = 0;
|
|
if (creationObject != num)
|
|
{
|
|
CreationObject creationObject2 = this._tool.creationObject;
|
|
ActionEvent<CreationObject> lockedStatusChangedEvent = creationObject2.LockedStatusChangedEvent;
|
|
Action<CreationObject> action2 = new Action(this.PGHDLEGELAN);
|
|
ActionEvent<CreationObject> actionEvent2 = lockedStatusChangedEvent - action2;
|
|
creationObject2.LockedStatusChangedEvent = actionEvent2;
|
|
}
|
|
this.OnDestroy();
|
|
PhotonNetwork.GetOwnershipAndDestroy(base.gameObject);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013CE9 RID: 81129 RVA: 0x004C0894 File Offset: 0x004BEA94
|
|
[Token(Token = "0x6013CE9")]
|
|
[Address(RVA = "0x16B7860", Offset = "0x16B6260", VA = "0x1816B7860", Slot = "15")]
|
|
protected virtual IEnumerable<Tool> COLAGHJALDD()
|
|
{
|
|
List<Tool> list = new List();
|
|
SandboxSet.SandboxSetPiece[] array = this.pieces;
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
Transform transform = base.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform2 = base.transform;
|
|
ABMHDAEIKAF abmhdaeikaf;
|
|
Tool tool = abmhdaeikaf.HLALBMPAGKI();
|
|
int num2 = 0;
|
|
if (tool != num2)
|
|
{
|
|
list.Add(tool);
|
|
tool.creationObject.OnCreatedBySpawning();
|
|
}
|
|
num++;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06013CEA RID: 81130 RVA: 0x004C0914 File Offset: 0x004BEB14
|
|
[Token(Token = "0x6013CEA")]
|
|
[Address(RVA = "0x16B7D50", Offset = "0x16B6750", VA = "0x1816B7D50")]
|
|
private void OnDrawGizmos()
|
|
{
|
|
SandboxSet.SandboxSetPiece[] array = this.pieces;
|
|
if (array != 0)
|
|
{
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
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;
|
|
Vector3 vector4;
|
|
float z4 = vector4.z;
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013CEB RID: 81131 RVA: 0x004C098C File Offset: 0x004BEB8C
|
|
[Token(Token = "0x6013CEB")]
|
|
[Address(RVA = "0x6A4030", Offset = "0x6A2A30", VA = "0x1806A4030")]
|
|
public SandboxSet()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013CEC RID: 81132 RVA: 0x004C09A0 File Offset: 0x004BEBA0
|
|
[Token(Token = "0x6013CEC")]
|
|
[Address(RVA = "0x16B7B50", Offset = "0x16B6550", VA = "0x1816B7B50")]
|
|
[CompilerGenerated]
|
|
private void LDFJMNGEMOF()
|
|
{
|
|
CreationObject creationObject = this._tool.creationObject;
|
|
ActionEvent<CreationObject> lockedStatusChangedEvent = creationObject.LockedStatusChangedEvent;
|
|
Action<CreationObject> action = new Action(this.PGHDLEGELAN);
|
|
ActionEvent<CreationObject> actionEvent = lockedStatusChangedEvent + action;
|
|
creationObject.LockedStatusChangedEvent = actionEvent;
|
|
}
|
|
|
|
// Token: 0x0400D5D3 RID: 54739
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400D5D3")]
|
|
[SerializeField]
|
|
private SandboxSet.SandboxSetPiece[] pieces;
|
|
|
|
// Token: 0x0400D5D4 RID: 54740
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400D5D4")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Tool _tool;
|
|
|
|
// Token: 0x02002BE8 RID: 11240
|
|
[Token(Token = "0x2002BE8")]
|
|
[Serializable]
|
|
public struct SandboxSetPiece
|
|
{
|
|
// Token: 0x170034E6 RID: 13542
|
|
// (get) Token: 0x06013CED RID: 81133 RVA: 0x004C09E4 File Offset: 0x004BEBE4
|
|
[Token(Token = "0x170034E6")]
|
|
public OGNBCNBPFCC equipment
|
|
{
|
|
[Token(Token = "0x6013CED")]
|
|
[Address(RVA = "0x237F60", Offset = "0x237360", VA = "0x180237F60")]
|
|
get
|
|
{
|
|
float z = this.initPosition.z;
|
|
OGNBCNBPFCC ognbcnbpfcc;
|
|
return ognbcnbpfcc;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400D5D5 RID: 54741
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400D5D5")]
|
|
[HELOBGLDDLH.KBCDAGDEHAO(false)]
|
|
public SerializedGuid equipmentId;
|
|
|
|
// Token: 0x0400D5D6 RID: 54742
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x400D5D6")]
|
|
public Vector3 initPosition;
|
|
|
|
// Token: 0x0400D5D7 RID: 54743
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x400D5D7")]
|
|
public Quaternion initRotation;
|
|
}
|
|
}
|
|
}
|