278 lines
8.9 KiB
C#
278 lines
8.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Networking.RPC;
|
|
using RecRoom.Networking.SynchronizedFields;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.Quest
|
|
{
|
|
// Token: 0x02002710 RID: 10000
|
|
[Token(Token = "0x2002710")]
|
|
[StructLayout(3)]
|
|
public class JigsawPuzzlePiece : MonoBehaviourPun
|
|
{
|
|
// Token: 0x17002F25 RID: 12069
|
|
// (get) Token: 0x06011692 RID: 71314 RVA: 0x00422F1C File Offset: 0x0042111C
|
|
[Token(Token = "0x17002F25")]
|
|
public bool ONEPKGDLILN
|
|
{
|
|
[Token(Token = "0x6011692")]
|
|
[Address(RVA = "0x1108990", Offset = "0x1107390", VA = "0x181108990")]
|
|
get
|
|
{
|
|
DJHELPHHAEN pegjgmdgkjn = this.PEGJGMDGKJN;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011693 RID: 71315 RVA: 0x00422F38 File Offset: 0x00421138
|
|
[Token(Token = "0x6011693")]
|
|
[Address(RVA = "0x1108020", Offset = "0x1106A20", VA = "0x181108020", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base..ctor();
|
|
Tool tool = this.tool;
|
|
ActionEvent<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PFLAPOOECDN);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent + action;
|
|
tool.PostReleaseEvent = actionEvent;
|
|
Tool tool2 = this.tool;
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool2.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action2 = new Action(this.APBEFBBOMDJ);
|
|
ActionEvent<Tool> actionEvent2;
|
|
tool2.PostResetEvent = actionEvent2;
|
|
this.tool.GravityPickupMode = (Tool.LMJNHJCGDOF)((ulong)1L);
|
|
int num;
|
|
int num2;
|
|
DJHELPHHAEN djhelphhaen = new DJHELPHHAEN("SSM", (SetterPermissionMode)num, num2);
|
|
int num3 = 0;
|
|
num2 = 0;
|
|
num = 0;
|
|
this.PEGJGMDGKJN = djhelphhaen;
|
|
MIEIBBPMDMP.OKGCDFLPFOD okgcdflpfod = new MIEIBBPMDMP.OKGCDFLPFOD(this.ENBNAPCJBNI);
|
|
int num4 = 0;
|
|
int num5 = 0;
|
|
djhelphhaen.JEPMLPCOGNM((ushort)num4, okgcdflpfod, num5, num3);
|
|
DJHELPHHAEN pegjgmdgkjn = this.PEGJGMDGKJN;
|
|
MIEIBBPMDMP.OKGCDFLPFOD okgcdflpfod2 = new MIEIBBPMDMP.OKGCDFLPFOD(this.FBAKLBLKOFA);
|
|
MIEIBBPMDMP.OKGCDFLPFOD okgcdflpfod3 = new MIEIBBPMDMP.OKGCDFLPFOD(this.MPFKGLEHJED);
|
|
}
|
|
|
|
// Token: 0x06011694 RID: 71316 RVA: 0x0042301C File Offset: 0x0042121C
|
|
[Token(Token = "0x6011694")]
|
|
[Address(RVA = "0x1108950", Offset = "0x1107350", VA = "0x181108950")]
|
|
private void Start()
|
|
{
|
|
DJHELPHHAEN pegjgmdgkjn = this.PEGJGMDGKJN;
|
|
int num = 0;
|
|
pegjgmdgkjn.HDGEHNGPFDO(this, (ushort)num);
|
|
}
|
|
|
|
// Token: 0x06011695 RID: 71317 RVA: 0x00423040 File Offset: 0x00421240
|
|
[Token(Token = "0x6011695")]
|
|
[Address(RVA = "0x1108790", Offset = "0x1107190", VA = "0x181108790", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
Tool tool = this.tool;
|
|
ActionEvent<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PFLAPOOECDN);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent - action;
|
|
tool.PostReleaseEvent = actionEvent;
|
|
Tool tool2 = this.tool;
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool2.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action2 = new Action(this.APBEFBBOMDJ);
|
|
ActionEvent<Tool> actionEvent2;
|
|
tool2.PostResetEvent = actionEvent2;
|
|
}
|
|
|
|
// Token: 0x06011696 RID: 71318 RVA: 0x004230AC File Offset: 0x004212AC
|
|
[Token(Token = "0x6011696")]
|
|
[Address(RVA = "0x1108890", Offset = "0x1107290", VA = "0x181108890")]
|
|
private void PFLAPOOECDN(Tool EGFEJGHDNAI)
|
|
{
|
|
this.DIFDCNNFIPM();
|
|
}
|
|
|
|
// Token: 0x06011697 RID: 71319 RVA: 0x004230C0 File Offset: 0x004212C0
|
|
[Token(Token = "0x6011697")]
|
|
[Address(RVA = "0x1107FC0", Offset = "0x11069C0", VA = "0x181107FC0")]
|
|
private void APBEFBBOMDJ(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
|
{
|
|
if (base.hasAuthority)
|
|
{
|
|
DJHELPHHAEN pegjgmdgkjn = this.PEGJGMDGKJN;
|
|
int num = 0;
|
|
pegjgmdgkjn.PIEOGAPMGIH((ushort)num);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011698 RID: 71320 RVA: 0x004230F0 File Offset: 0x004212F0
|
|
[Token(Token = "0x6011698")]
|
|
[Address(RVA = "0x1108430", Offset = "0x1106E30", VA = "0x181108430")]
|
|
private void ENBNAPCJBNI(ushort CPMPEJFMDED, ushort OEAPMLMHLLF)
|
|
{
|
|
SparkleOutline sparkleOutline = this.sparkleOutline;
|
|
int num = 0;
|
|
if (sparkleOutline != num)
|
|
{
|
|
this.sparkleOutline.enabled = true;
|
|
}
|
|
this.tool.rigidbodyEx.RemoveKinematic(this);
|
|
this.tool.EnablePickup(this);
|
|
this.DIFDCNNFIPM();
|
|
}
|
|
|
|
// Token: 0x06011699 RID: 71321 RVA: 0x00423148 File Offset: 0x00421348
|
|
[Token(Token = "0x6011699")]
|
|
[Address(RVA = "0x11084F0", Offset = "0x1106EF0", VA = "0x1811084F0")]
|
|
private void FBAKLBLKOFA(ushort CPMPEJFMDED, ushort OEAPMLMHLLF)
|
|
{
|
|
SparkleOutline sparkleOutline = this.sparkleOutline;
|
|
int num = 0;
|
|
if (sparkleOutline != num)
|
|
{
|
|
SparkleOutline sparkleOutline2 = this.sparkleOutline;
|
|
int num2 = 0;
|
|
sparkleOutline2.enabled = num2 != 0;
|
|
}
|
|
if (base.hasAuthority)
|
|
{
|
|
Transform transform = base.transform;
|
|
Transform placementTransform = this.PlacementTransform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform2 = base.transform;
|
|
Transform placementTransform2 = this.PlacementTransform;
|
|
}
|
|
this.tool.rigidbodyEx.AddKinematic(this);
|
|
this.tool.DisablePickup(this);
|
|
ToolCleanup <JGABDFBGDEB>k__BackingField = this.tool.<JGABDFBGDEB>k__BackingField;
|
|
int num3 = 0;
|
|
if (<JGABDFBGDEB>k__BackingField != num3)
|
|
{
|
|
this.tool.<JGABDFBGDEB>k__BackingField.PauseAutomaticCleanup(this);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601169A RID: 71322 RVA: 0x004231FC File Offset: 0x004213FC
|
|
[Token(Token = "0x601169A")]
|
|
[Address(RVA = "0x11086C0", Offset = "0x11070C0", VA = "0x1811086C0")]
|
|
private void MPFKGLEHJED(ushort HKDPLMDENDA, ushort CKCOCKOPHAM)
|
|
{
|
|
Tool tool = this.tool;
|
|
int num = 0;
|
|
if (tool != num)
|
|
{
|
|
ToolCleanup <JGABDFBGDEB>k__BackingField = this.tool.<JGABDFBGDEB>k__BackingField;
|
|
int num2 = 0;
|
|
if (<JGABDFBGDEB>k__BackingField != num2)
|
|
{
|
|
this.tool.<JGABDFBGDEB>k__BackingField.ResumeAutomaticCleanup(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601169B RID: 71323 RVA: 0x0042324C File Offset: 0x0042144C
|
|
[Token(Token = "0x601169B")]
|
|
[Address(RVA = "0x1108230", Offset = "0x1106C30", VA = "0x181108230")]
|
|
private void DIFDCNNFIPM()
|
|
{
|
|
if (base.hasAuthority)
|
|
{
|
|
DJHELPHHAEN pegjgmdgkjn = this.PEGJGMDGKJN;
|
|
Transform placementTransform = this.PlacementTransform;
|
|
int num = 0;
|
|
if (!(placementTransform == num))
|
|
{
|
|
Transform placementTransform2 = this.PlacementTransform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform = base.transform;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
float num2 = this.placementRadius;
|
|
DJHELPHHAEN pegjgmdgkjn2 = this.PEGJGMDGKJN;
|
|
PhotonView photonView = base.photonView;
|
|
RPCActions.RPCAction rpcaction = new RPCActions.RPCAction(this.RpcOnPlace);
|
|
photonView.RpcAll(rpcaction);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601169C RID: 71324 RVA: 0x004232E0 File Offset: 0x004214E0
|
|
[Token(Token = "0x601169C")]
|
|
[Address(RVA = "0x11088A0", Offset = "0x11072A0", VA = "0x1811088A0")]
|
|
[PunRPC]
|
|
protected void RpcOnPlace()
|
|
{
|
|
Transform placementTransform = this.PlacementTransform;
|
|
RecRoomAudioClip recRoomAudioClip = this.placementAudio;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x0601169D RID: 71325 RVA: 0x00423308 File Offset: 0x00421508
|
|
[Token(Token = "0x601169D")]
|
|
[Address(RVA = "0x1108980", Offset = "0x1107380", VA = "0x181108980")]
|
|
public JigsawPuzzlePiece()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400BA4D RID: 47693
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400BA4D")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400BA4E RID: 47694
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400BA4E")]
|
|
[SerializeField]
|
|
[OCIDFHDICIP(JIBDPHMGEGO.Self, false, false)]
|
|
private SparkleOutline sparkleOutline;
|
|
|
|
// Token: 0x0400BA4F RID: 47695
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400BA4F")]
|
|
[SerializeField]
|
|
private float placementRadius = 0.2f;
|
|
|
|
// Token: 0x0400BA50 RID: 47696
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400BA50")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip placementAudio;
|
|
|
|
// Token: 0x0400BA51 RID: 47697
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400BA51")]
|
|
[NonSerialized]
|
|
public Transform PlacementTransform;
|
|
|
|
// Token: 0x0400BA52 RID: 47698
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400BA52")]
|
|
private DJHELPHHAEN PEGJGMDGKJN;
|
|
|
|
// Token: 0x02002711 RID: 10001
|
|
[Token(Token = "0x2002711")]
|
|
private enum ECBGFFAEECI
|
|
{
|
|
// Token: 0x0400BA54 RID: 47700
|
|
[Token(Token = "0x400BA54")]
|
|
NOT_PLACED,
|
|
// Token: 0x0400BA55 RID: 47701
|
|
[Token(Token = "0x400BA55")]
|
|
PLACED
|
|
}
|
|
}
|
|
}
|