scripts
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Pun;
|
||||
using RecRoom.Tools;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Consumable
|
||||
{
|
||||
// Token: 0x02002146 RID: 8518
|
||||
[Token(Token = "0x2002146")]
|
||||
[StructLayout(3)]
|
||||
public class ConsumableSpawnedToolPiece : MonoBehaviourPun
|
||||
{
|
||||
// Token: 0x0600EADC RID: 60124 RVA: 0x0037AC2C File Offset: 0x00378E2C
|
||||
[Token(Token = "0x600EADC")]
|
||||
[Address(RVA = "0x1799D00", Offset = "0x1798700", VA = "0x181799D00", Slot = "13")]
|
||||
protected override void Awake()
|
||||
{
|
||||
base..ctor();
|
||||
this.tool.rigidbodyEx.AddKinematic(this);
|
||||
Tool tool = this.tool;
|
||||
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.MNCLFHBBPHB);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent + action;
|
||||
tool.PostPickupEvent = actionEvent;
|
||||
this.tool.toolEntity.AddMainToolBrokenBehavior((ToolEntity.PACMMGFMOEN)((uint)2), this, 999);
|
||||
GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
int num = 0;
|
||||
if (instance != num)
|
||||
{
|
||||
GameManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
MIEIBBPMDMP.GGPHEKCPPMP ggphekcppmp = new MIEIBBPMDMP.GGPHEKCPPMP(this.OENCFJHENPB);
|
||||
instance2.KMKCFILCLNO += ggphekcppmp;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600EADD RID: 60125 RVA: 0x0037ACCC File Offset: 0x00378ECC
|
||||
[Token(Token = "0x600EADD")]
|
||||
[Address(RVA = "0x1799ED0", Offset = "0x17988D0", VA = "0x181799ED0")]
|
||||
private void MNCLFHBBPHB(Tool NBHJPDBHDHB)
|
||||
{
|
||||
this.tool.rigidbodyEx.RemoveKinematic(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600EADE RID: 60126 RVA: 0x0037ACF0 File Offset: 0x00378EF0
|
||||
[Token(Token = "0x600EADE")]
|
||||
[Address(RVA = "0x1799F80", Offset = "0x1798980", VA = "0x181799F80", Slot = "14")]
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
int num = 0;
|
||||
if (instance != num)
|
||||
{
|
||||
GameManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
MIEIBBPMDMP.GGPHEKCPPMP ggphekcppmp = new MIEIBBPMDMP.GGPHEKCPPMP(this.OENCFJHENPB);
|
||||
instance2.KMKCFILCLNO -= ggphekcppmp;
|
||||
}
|
||||
Tool tool = this.tool;
|
||||
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.MNCLFHBBPHB);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent - action;
|
||||
tool.PostPickupEvent = actionEvent;
|
||||
base.OnDestroy();
|
||||
}
|
||||
|
||||
// Token: 0x0600EADF RID: 60127 RVA: 0x0037AD68 File Offset: 0x00378F68
|
||||
[Token(Token = "0x600EADF")]
|
||||
[Address(RVA = "0x179A0F0", Offset = "0x1798AF0", VA = "0x18179A0F0")]
|
||||
private void OnDisable()
|
||||
{
|
||||
PhotonNetwork.GetOwnershipAndDestroy(base.gameObject);
|
||||
}
|
||||
|
||||
// Token: 0x0600EAE0 RID: 60128 RVA: 0x0037AD84 File Offset: 0x00378F84
|
||||
[Token(Token = "0x600EAE0")]
|
||||
[Address(RVA = "0x1799F00", Offset = "0x1798900", VA = "0x181799F00")]
|
||||
private void OENCFJHENPB(ushort LLEHBLJHJHM, ushort CPMPEJFMDED, ushort PLGFJEILFGP, ushort OEAPMLMHLLF)
|
||||
{
|
||||
if (base.hasAuthority)
|
||||
{
|
||||
PhotonNetwork.Destroy(base.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600EAE1 RID: 60129 RVA: 0x0037ADA8 File Offset: 0x00378FA8
|
||||
[Token(Token = "0x600EAE1")]
|
||||
[Address(RVA = "0x6A4030", Offset = "0x6A2A30", VA = "0x1806A4030")]
|
||||
public ConsumableSpawnedToolPiece()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04009B92 RID: 39826
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4009B92")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
protected Tool tool;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user