156 lines
5.1 KiB
C#
156 lines
5.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Activities.Quest.Goblin2;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Avatars.Outfit
|
|
{
|
|
// Token: 0x020023D6 RID: 9174
|
|
[Token(Token = "0x20023D6")]
|
|
public class PermanentHairDyeTool : MonoBehaviourPun
|
|
{
|
|
// Token: 0x0600EC9C RID: 60572 RVA: 0x00366FD4 File Offset: 0x003651D4
|
|
[Token(Token = "0x600EC9C")]
|
|
[Address(RVA = "0x11E3730", Offset = "0x11E2530", VA = "0x1811E3730", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
int num;
|
|
for (;;)
|
|
{
|
|
base..ctor();
|
|
Tool tool = this.tool;
|
|
num = 0;
|
|
if (tool.NDKHDFJHGPP || this.tool.InstantiationParameters == 0 || !this.tool.InstantiationParameters.TryGetValue("ColorGuid", num))
|
|
{
|
|
goto IL_86;
|
|
}
|
|
if (num == 0 || num != 0)
|
|
{
|
|
ColorVault.ColorToGuid colorToGuid;
|
|
this.MEBLCMDDKCK = colorToGuid;
|
|
if (colorToGuid != 0)
|
|
{
|
|
break;
|
|
}
|
|
if (num == 0 || num != 0)
|
|
{
|
|
goto IL_E4;
|
|
}
|
|
}
|
|
}
|
|
int num2 = 0;
|
|
bool flag = ColorVault.ColorToGuid.BDBLGMKABNK(0, num2);
|
|
HairDyeRenderSetup hairDyeRenderSetup = this.hairDyeRenderSetup;
|
|
ColorVault.ColorToGuid meblcmddkck = this.MEBLCMDDKCK;
|
|
hairDyeRenderSetup.SetupRenderers(meblcmddkck);
|
|
string guidString = this.MEBLCMDDKCK.guidString;
|
|
IL_86:
|
|
Tool tool2 = this.tool;
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool2.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.FICCBKGGJOE);
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> eahpnacbldd = EAHPNACBLDD.BPJDFPACLMK(postResetEvent, action);
|
|
tool2.PostResetEvent = eahpnacbldd;
|
|
Potion potion = this.potion;
|
|
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
|
potion.AOFFBPHMBBP += jiclaajlnce;
|
|
return;
|
|
IL_E4:
|
|
Debug.LogError("Can not find dye color for " + num);
|
|
KKPBCOOONNK.HMLHHNMGNAA(base.gameObject);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600EC9D RID: 60573 RVA: 0x003670E8 File Offset: 0x003652E8
|
|
[Token(Token = "0x600EC9D")]
|
|
[Address(RVA = "0x11E3CA0", Offset = "0x11E2AA0", VA = "0x1811E3CA0", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
Tool tool = this.tool;
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.FICCBKGGJOE);
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> eahpnacbldd = EAHPNACBLDD.GMNMHGMFGOL(postResetEvent, action);
|
|
tool.PostResetEvent = eahpnacbldd;
|
|
Potion potion = this.potion;
|
|
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
|
potion.AOFFBPHMBBP -= jiclaajlnce;
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0600EC9E RID: 60574 RVA: 0x0036714C File Offset: 0x0036534C
|
|
[Token(Token = "0x600EC9E")]
|
|
[Address(RVA = "0x11E3C20", Offset = "0x11E2A20", VA = "0x1811E3C20")]
|
|
private void FICCBKGGJOE(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
|
{
|
|
KKPBCOOONNK.HMLHHNMGNAA(base.gameObject);
|
|
}
|
|
|
|
// Token: 0x0600EC9F RID: 60575 RVA: 0x00367168 File Offset: 0x00365368
|
|
[Token(Token = "0x600EC9F")]
|
|
[Address(RVA = "0x11E3AA0", Offset = "0x11E28A0", VA = "0x1811E3AA0")]
|
|
private void BHFMPLDIHFG(Potion GCEPCEDMAHI, AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
if (!this.OEJHFGNAGFB && IEKDDPPNFPF != 0 && IEKDDPPNFPF.DMKCIEPGGAB)
|
|
{
|
|
ColorVault.ColorToGuid meblcmddkck = this.MEBLCMDDKCK;
|
|
bool flag = MNHEFLIMKGO.JDJOHHLOEJK();
|
|
CFLMJLFBOKH.OLIPFECOMAL();
|
|
Tool tool = this.tool;
|
|
if (tool != 0)
|
|
{
|
|
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = tool.<FLFJCIPBAPA>k__BackingField;
|
|
if (<FLFJCIPBAPA>k__BackingField != 0)
|
|
{
|
|
bool isNew = <FLFJCIPBAPA>k__BackingField.HICLCBMIPIN;
|
|
}
|
|
if (0 != 1)
|
|
{
|
|
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField2 = this.tool.<FLFJCIPBAPA>k__BackingField;
|
|
int num = 0;
|
|
<FLFJCIPBAPA>k__BackingField2.HICLCBMIPIN = num != 0;
|
|
}
|
|
}
|
|
this.OEJHFGNAGFB = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600ECA0 RID: 60576 RVA: 0x003671F8 File Offset: 0x003653F8
|
|
[Token(Token = "0x600ECA0")]
|
|
[Address(RVA = "0x752FB0", Offset = "0x751DB0", VA = "0x180752FB0")]
|
|
public PermanentHairDyeTool()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04009C6A RID: 40042
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4009C6A")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
protected Potion potion;
|
|
|
|
// Token: 0x04009C6B RID: 40043
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4009C6B")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
protected HairDyeRenderSetup hairDyeRenderSetup;
|
|
|
|
// Token: 0x04009C6C RID: 40044
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4009C6C")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
protected Tool tool;
|
|
|
|
// Token: 0x04009C6D RID: 40045
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4009C6D")]
|
|
private bool OEJHFGNAGFB;
|
|
|
|
// Token: 0x04009C6E RID: 40046
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4009C6E")]
|
|
private ColorVault.ColorToGuid MEBLCMDDKCK;
|
|
}
|
|
}
|