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: 0x020024BA RID: 9402
|
|
[Token(Token = "0x20024BA")]
|
|
public class PermanentHairDyeTool : MonoBehaviourPun
|
|
{
|
|
// Token: 0x0600F0B2 RID: 61618 RVA: 0x003705D8 File Offset: 0x0036E7D8
|
|
[Token(Token = "0x600F0B2")]
|
|
[Address(RVA = "0x1D187A0", Offset = "0x1D177A0", VA = "0x181D187A0", 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: 0x0600F0B3 RID: 61619 RVA: 0x003706EC File Offset: 0x0036E8EC
|
|
[Token(Token = "0x600F0B3")]
|
|
[Address(RVA = "0x1D18D10", Offset = "0x1D17D10", VA = "0x181D18D10", 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: 0x0600F0B4 RID: 61620 RVA: 0x00370750 File Offset: 0x0036E950
|
|
[Token(Token = "0x600F0B4")]
|
|
[Address(RVA = "0x1D18C90", Offset = "0x1D17C90", VA = "0x181D18C90")]
|
|
private void FICCBKGGJOE(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
|
{
|
|
KKPBCOOONNK.HMLHHNMGNAA(base.gameObject);
|
|
}
|
|
|
|
// Token: 0x0600F0B5 RID: 61621 RVA: 0x0037076C File Offset: 0x0036E96C
|
|
[Token(Token = "0x600F0B5")]
|
|
[Address(RVA = "0x1D18B10", Offset = "0x1D17B10", VA = "0x181D18B10")]
|
|
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: 0x0600F0B6 RID: 61622 RVA: 0x003707FC File Offset: 0x0036E9FC
|
|
[Token(Token = "0x600F0B6")]
|
|
[Address(RVA = "0x8E9790", Offset = "0x8E8790", VA = "0x1808E9790")]
|
|
public PermanentHairDyeTool()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04009E5C RID: 40540
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4009E5C")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
protected Potion potion;
|
|
|
|
// Token: 0x04009E5D RID: 40541
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4009E5D")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
protected HairDyeRenderSetup hairDyeRenderSetup;
|
|
|
|
// Token: 0x04009E5E RID: 40542
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4009E5E")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
protected Tool tool;
|
|
|
|
// Token: 0x04009E5F RID: 40543
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4009E5F")]
|
|
private bool OEJHFGNAGFB;
|
|
|
|
// Token: 0x04009E60 RID: 40544
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4009E60")]
|
|
private ColorVault.ColorToGuid MEBLCMDDKCK;
|
|
}
|
|
}
|