90 lines
3.1 KiB
C#
90 lines
3.1 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Consumable
|
|
{
|
|
// Token: 0x0200214F RID: 8527
|
|
[Token(Token = "0x200214F")]
|
|
[StructLayout(3)]
|
|
public class DefaultConsumableTool : ConsumableTool
|
|
{
|
|
// Token: 0x0600EB0E RID: 60174 RVA: 0x0037B820 File Offset: 0x00379A20
|
|
[Token(Token = "0x600EB0E")]
|
|
[Address(RVA = "0x179BDB0", Offset = "0x179A7B0", VA = "0x18179BDB0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
Tool tool = this.tool;
|
|
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
|
Action<Tool> action = new Action(this.MNCLFHBBPHB);
|
|
ActionEvent<Tool> actionEvent = postPickupEvent + action;
|
|
tool.PostPickupEvent = actionEvent;
|
|
}
|
|
|
|
// Token: 0x0600EB0F RID: 60175 RVA: 0x0037B864 File Offset: 0x00379A64
|
|
[Token(Token = "0x600EB0F")]
|
|
[Address(RVA = "0x179C000", Offset = "0x179AA00", VA = "0x18179C000", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
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.LHBLHBEIFKA();
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0600EB10 RID: 60176 RVA: 0x0037B8B0 File Offset: 0x00379AB0
|
|
[Token(Token = "0x600EB10")]
|
|
[Address(RVA = "0x179BE60", Offset = "0x179A860", VA = "0x18179BE60", Slot = "15")]
|
|
protected override void FIENOGGFMIE(ConsumableInfo FNPFHJHDDAC)
|
|
{
|
|
base.FIENOGGFMIE(FNPFHJHDDAC);
|
|
ConsumableManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
string consumableItemDesc = this.<ENJFOPBELFF>k__BackingField.ConsumableItemDesc;
|
|
Transform transform = instance.GetOrLoadConsumablePrefab(consumableItemDesc).visualRoot;
|
|
Transform transform2 = this.visualRoot;
|
|
int num = 0;
|
|
Transform transform3 = global::UnityEngine.Object.Instantiate<Transform>(transform, transform2, num != 0);
|
|
}
|
|
|
|
// Token: 0x0600EB11 RID: 60177 RVA: 0x0037B900 File Offset: 0x00379B00
|
|
[Token(Token = "0x600EB11")]
|
|
[Address(RVA = "0x179BF30", Offset = "0x179A930", VA = "0x18179BF30")]
|
|
private void MNCLFHBBPHB(Tool NBHJPDBHDHB)
|
|
{
|
|
base.LHBLHBEIFKA();
|
|
Action action = new Action(this.ONAALNFGKAF);
|
|
ISchedulerPromise schedulerPromise = this.InvokeNextEndOfFrame(action);
|
|
}
|
|
|
|
// Token: 0x0600EB12 RID: 60178 RVA: 0x0037B928 File Offset: 0x00379B28
|
|
[Token(Token = "0x600EB12")]
|
|
[Address(RVA = "0x179C0C0", Offset = "0x179AAC0", VA = "0x18179C0C0")]
|
|
public DefaultConsumableTool()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600EB13 RID: 60179 RVA: 0x0037B93C File Offset: 0x00379B3C
|
|
[Token(Token = "0x600EB13")]
|
|
[Address(RVA = "0x179BFA0", Offset = "0x179A9A0", VA = "0x18179BFA0")]
|
|
[CompilerGenerated]
|
|
private void ONAALNFGKAF()
|
|
{
|
|
PhotonNetwork.Destroy(base.gameObject);
|
|
}
|
|
|
|
// Token: 0x04009BA9 RID: 39849
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4009BA9")]
|
|
[SerializeField]
|
|
protected Transform visualRoot;
|
|
}
|
|
}
|