864 lines
26 KiB
C#
864 lines
26 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Threading.Tasks;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Core.Equipment;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
// Token: 0x02000332 RID: 818
|
|
[Token(Token = "0x2000332")]
|
|
public class EquipmentManager : NetworkedSingletonMonoBehaviour<EquipmentManager>
|
|
{
|
|
// Token: 0x1400004D RID: 77
|
|
// (add) Token: 0x0600196E RID: 6510 RVA: 0x00065F08 File Offset: 0x00064108
|
|
// (remove) Token: 0x0600196F RID: 6511 RVA: 0x00065F30 File Offset: 0x00064130
|
|
[Token(Token = "0x1400004D")]
|
|
public event Action<CFOEKMPLMII> APKDEPGJGPO
|
|
{
|
|
[Token(Token = "0x600196E")]
|
|
[Address(RVA = "0x1FF4A50", Offset = "0x1FF3A50", VA = "0x181FF4A50")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Action<CFOEKMPLMII> apkdepgjgpo;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
apkdepgjgpo = this.APKDEPGJGPO;
|
|
@delegate = Delegate.Combine(apkdepgjgpo, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != apkdepgjgpo)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x600196F")]
|
|
[Address(RVA = "0x1FF4B90", Offset = "0x1FF3B90", VA = "0x181FF4B90")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Action<CFOEKMPLMII> apkdepgjgpo;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
apkdepgjgpo = this.APKDEPGJGPO;
|
|
@delegate = Delegate.Remove(apkdepgjgpo, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != apkdepgjgpo)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1400004E RID: 78
|
|
// (add) Token: 0x06001970 RID: 6512 RVA: 0x00065F58 File Offset: 0x00064158
|
|
// (remove) Token: 0x06001971 RID: 6513 RVA: 0x00065F80 File Offset: 0x00064180
|
|
[Token(Token = "0x1400004E")]
|
|
public event Action<AGAJMBPABDL, string> OOIMCIECKPG
|
|
{
|
|
[Token(Token = "0x6001970")]
|
|
[Address(RVA = "0x1FF49B0", Offset = "0x1FF39B0", VA = "0x181FF49B0")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Action<AGAJMBPABDL, string> ooimcieckpg;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
ooimcieckpg = this.OOIMCIECKPG;
|
|
@delegate = Delegate.Combine(ooimcieckpg, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != ooimcieckpg)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x6001971")]
|
|
[Address(RVA = "0x1FF4AF0", Offset = "0x1FF3AF0", VA = "0x181FF4AF0")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Action<AGAJMBPABDL, string> ooimcieckpg;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
ooimcieckpg = this.OOIMCIECKPG;
|
|
@delegate = Delegate.Remove(ooimcieckpg, value);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
while (@delegate != ooimcieckpg)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700044B RID: 1099
|
|
// (get) Token: 0x06001972 RID: 6514 RVA: 0x00065FA8 File Offset: 0x000641A8
|
|
// (set) Token: 0x06001973 RID: 6515 RVA: 0x00065FBC File Offset: 0x000641BC
|
|
[Token(Token = "0x1700044B")]
|
|
public List<CFOEKMPLMII> APHNDBMDDLJ
|
|
{
|
|
[Token(Token = "0x6001972")]
|
|
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0")]
|
|
get;
|
|
[Token(Token = "0x6001973")]
|
|
[Address(RVA = "0x55BCE0", Offset = "0x55ACE0", VA = "0x18055BCE0")]
|
|
private set;
|
|
}
|
|
|
|
// Token: 0x1700044C RID: 1100
|
|
// (get) Token: 0x06001974 RID: 6516 RVA: 0x00065FD0 File Offset: 0x000641D0
|
|
// (set) Token: 0x06001975 RID: 6517 RVA: 0x00065FE4 File Offset: 0x000641E4
|
|
[Token(Token = "0x1700044C")]
|
|
public Dictionary<string, CFOEKMPLMII> EEOPLHEIHHB
|
|
{
|
|
[Token(Token = "0x6001974")]
|
|
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710")]
|
|
get;
|
|
[Token(Token = "0x6001975")]
|
|
[Address(RVA = "0x417A10", Offset = "0x416A10", VA = "0x180417A10")]
|
|
private set;
|
|
}
|
|
|
|
// Token: 0x06001976 RID: 6518 RVA: 0x00065FF8 File Offset: 0x000641F8
|
|
[Token(Token = "0x6001976")]
|
|
[Address(RVA = "0x1FF2300", Offset = "0x1FF1300", VA = "0x181FF2300", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
List<CFOEKMPLMII> list = new List();
|
|
this.<LOFBMKDCNLF>k__BackingField = list;
|
|
List<CFOEKMPLMII> list2 = new List();
|
|
this.LDALKIIDNHM = list2;
|
|
MFBGLIHGCGO<Tool> staticToolInstantiatedEvent = Tool.StaticToolInstantiatedEvent;
|
|
Action<Tool> action = new Action(this.BEAIGEDBBOH);
|
|
Tool.StaticToolInstantiatedEvent = MFBGLIHGCGO.BPJDFPACLMK(staticToolInstantiatedEvent, action);
|
|
Dictionary<string, CFOEKMPLMII> dictionary = new Dictionary();
|
|
this.<AMGMDBDHIJN>k__BackingField = dictionary;
|
|
SceneManager.sceneUnloaded += new UnityAction(this.LMOACMLMLAB);
|
|
}
|
|
|
|
// Token: 0x06001977 RID: 6519 RVA: 0x00066064 File Offset: 0x00064264
|
|
[Token(Token = "0x6001977")]
|
|
[Address(RVA = "0x1FF3B40", Offset = "0x1FF2B40", VA = "0x181FF3B40", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
MFBGLIHGCGO<Tool> staticToolInstantiatedEvent = Tool.StaticToolInstantiatedEvent;
|
|
Action<Tool> action = new Action(this.BEAIGEDBBOH);
|
|
Tool.StaticToolInstantiatedEvent = MFBGLIHGCGO.GMNMHGMFGOL(staticToolInstantiatedEvent, action);
|
|
SceneManager.sceneUnloaded -= new UnityAction(this.LMOACMLMLAB);
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x06001978 RID: 6520 RVA: 0x000660A8 File Offset: 0x000642A8
|
|
[Token(Token = "0x6001978")]
|
|
[Address(RVA = "0x1FF31A0", Offset = "0x1FF21A0", VA = "0x181FF31A0")]
|
|
private void LMOACMLMLAB(Scene LHECBPFGEMH)
|
|
{
|
|
string text;
|
|
if (!string.Equals(text, "empty"))
|
|
{
|
|
this.PAIGMPFCBJK.Clear();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001979 RID: 6521 RVA: 0x000660D4 File Offset: 0x000642D4
|
|
[Token(Token = "0x6001979")]
|
|
[Address(RVA = "0x1FF3D00", Offset = "0x1FF2D00", VA = "0x181FF3D00")]
|
|
public Tool SpawnEquipmentForLocalPlayer(CFOEKMPLMII FIDIMMBHIIN, Vector3 DDHPAFKBMON, Quaternion IGPENJBJADK, float FNJKKNKLDPB, PlayerSpawnedEquipment.IILDIBHEIDO OEFOIFHDBEN)
|
|
{
|
|
float z = DDHPAFKBMON.z;
|
|
Tool tool;
|
|
return tool;
|
|
}
|
|
|
|
// Token: 0x0600197A RID: 6522 RVA: 0x000660F0 File Offset: 0x000642F0
|
|
[Token(Token = "0x600197A")]
|
|
[Address(RVA = "0x1FF3D70", Offset = "0x1FF2D70", VA = "0x181FF3D70")]
|
|
public Tool SpawnEquipmentForLocalPlayer(string FNKOCNMJKLK, string NEHDDMJNPPA, Vector3 DDHPAFKBMON, Quaternion IGPENJBJADK, float FNJKKNKLDPB, PlayerSpawnedEquipment.IILDIBHEIDO OEFOIFHDBEN)
|
|
{
|
|
Dictionary<string, object> dictionary = new Dictionary();
|
|
int inpoaaaoahi = KKPBCOOONNK.MDMMDPEKICF.INPOAAAOAHI;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600197B RID: 6523 RVA: 0x0006616C File Offset: 0x0006436C
|
|
[Token(Token = "0x600197B")]
|
|
[Address(RVA = "0x1FF4160", Offset = "0x1FF3160", VA = "0x181FF4160")]
|
|
public GameObject SpawnEquipmentImposter(string FNKOCNMJKLK, string NEHDDMJNPPA)
|
|
{
|
|
int num = 0;
|
|
GameObject gameObject = KKPBCOOONNK.ODJFJBABAAO(FNKOCNMJKLK, num != 0);
|
|
if (0 == 0)
|
|
{
|
|
string name = gameObject.name;
|
|
EquipmentSkin equipmentSkin = this.GetEquipmentSkin(name, NEHDDMJNPPA);
|
|
int num2 = 0;
|
|
if (equipmentSkin != num2)
|
|
{
|
|
}
|
|
}
|
|
GameObject gameObject2;
|
|
return gameObject2;
|
|
}
|
|
|
|
// Token: 0x0600197C RID: 6524 RVA: 0x000661B0 File Offset: 0x000643B0
|
|
[Token(Token = "0x600197C")]
|
|
[Address(RVA = "0x1FF3FD0", Offset = "0x1FF2FD0", VA = "0x181FF3FD0")]
|
|
public GameObject SpawnEquipmentImposter(GameObject CFAPNBBHEKB, string NEHDDMJNPPA)
|
|
{
|
|
if (0 == 0)
|
|
{
|
|
string name = CFAPNBBHEKB.name;
|
|
EquipmentSkin equipmentSkin = this.GetEquipmentSkin(name, NEHDDMJNPPA);
|
|
int num = 0;
|
|
if (equipmentSkin != num)
|
|
{
|
|
}
|
|
}
|
|
GameObject gameObject;
|
|
return gameObject;
|
|
}
|
|
|
|
// Token: 0x0600197D RID: 6525 RVA: 0x000661E8 File Offset: 0x000643E8
|
|
[Token(Token = "0x600197D")]
|
|
[Address(RVA = "0x1FF2600", Offset = "0x1FF1600", VA = "0x181FF2600")]
|
|
public PMGCJEPKFOF<GameObject> DelayedSpawnEquipmentImposter(string FNKOCNMJKLK, string NEHDDMJNPPA, float NBOCPMDNOCF)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600197D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling PMGCJEPKFOF<UnityEngine.GameObject> EquipmentManager::DelayedSpawnEquipmentImposter(System.String,System.String,System.Single)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:class [RecRoom.Promises.Runtime]CBLLFJEDOII<class [UnityEngine.CoreModule]UnityEngine.GameObject>(var_0_05, newobj:CBLLFJEDOII[exp:class [RecRoom.Promises.Runtime]CBLLFJEDOII<class [UnityEngine.CoreModule]UnityEngine.GameObject>](CBLLFJEDOII::.ctor))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600197E RID: 6526 RVA: 0x00066200 File Offset: 0x00064400
|
|
[Token(Token = "0x600197E")]
|
|
[Address(RVA = "0x1FF3A10", Offset = "0x1FF2A10", VA = "0x181FF3A10")]
|
|
private Task MOJDIDAMILP(string FNKOCNMJKLK, string NEHDDMJNPPA, float NBOCPMDNOCF, CBLLFJEDOII<GameObject> NKLGAGCHGPM)
|
|
{
|
|
Task task;
|
|
return task;
|
|
}
|
|
|
|
// Token: 0x0600197F RID: 6527 RVA: 0x00066214 File Offset: 0x00064414
|
|
[Token(Token = "0x600197F")]
|
|
[Address(RVA = "0x1FF3210", Offset = "0x1FF2210", VA = "0x181FF3210")]
|
|
public Tool LocalFind(CFOEKMPLMII FAFPPDGHACH, PlayerSpawnedEquipment.IILDIBHEIDO OEFOIFHDBEN)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
List<PlayerSpawnedEquipment> all = PlayerSpawnedEquipment.All;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
bool flag2;
|
|
while (!flag2)
|
|
{
|
|
}
|
|
bool flag3;
|
|
while (!flag3)
|
|
{
|
|
}
|
|
bool flag4;
|
|
while (!flag4)
|
|
{
|
|
}
|
|
while (!flag4)
|
|
{
|
|
}
|
|
string text;
|
|
while (text == 0)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (num != -1)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001980 RID: 6528 RVA: 0x00066280 File Offset: 0x00064480
|
|
[Token(Token = "0x6001980")]
|
|
[Address(RVA = "0x1FF2760", Offset = "0x1FF1760", VA = "0x181FF2760")]
|
|
public DABKFAIHBBP DownloadUnlockedEquipments(BPHGKAEDBPE.CBEOHBCIPEA AFLPGGJMPOE)
|
|
{
|
|
return ECINAMCDBJO.DJHHDCGJIJB(delegate(string error, List<CFOEKMPLMII> selections)
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
if (selections == 0)
|
|
{
|
|
goto IL_5A;
|
|
}
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
break;
|
|
}
|
|
if (num == 0)
|
|
{
|
|
goto IL_5A;
|
|
}
|
|
}
|
|
EquipmentManager <>4__this = this;
|
|
bool flag2;
|
|
while (flag2)
|
|
{
|
|
}
|
|
EquipmentManager <>4__this2 = this;
|
|
List<CFOEKMPLMII> list = this.<LOFBMKDCNLF>k__BackingField;
|
|
Dictionary<string, CFOEKMPLMII> dictionary = this.<AMGMDBDHIJN>k__BackingField;
|
|
throw new NullReferenceException();
|
|
IL_5A:
|
|
BPHGKAEDBPE.HADGLCCBNHM(AFLPGGJMPOE, error);
|
|
});
|
|
}
|
|
|
|
// Token: 0x06001981 RID: 6529 RVA: 0x000662B8 File Offset: 0x000644B8
|
|
[Token(Token = "0x6001981")]
|
|
[Address(RVA = "0x1FF3530", Offset = "0x1FF2530", VA = "0x181FF3530")]
|
|
public CFOEKMPLMII LocalGetEquipmentFromTool(Tool EGFEJGHDNAI)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
ToolSkinMapper toolSkinMapper = EGFEJGHDNAI.toolSkinMapper;
|
|
int num2 = 0;
|
|
if (!(toolSkinMapper != num2))
|
|
{
|
|
goto IL_9A;
|
|
}
|
|
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = EGFEJGHDNAI.<FLFJCIPBAPA>k__BackingField;
|
|
int num3 = 0;
|
|
if (!(<FLFJCIPBAPA>k__BackingField != num3) || (EGFEJGHDNAI.<FLFJCIPBAPA>k__BackingField.<MHCDCIGJNNA>k__BackingField ? 1 : 0) == num)
|
|
{
|
|
goto IL_9A;
|
|
}
|
|
List<CFOEKMPLMII> list = this.<LOFBMKDCNLF>k__BackingField;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
EquipmentSkin pdjaabbadih = EGFEJGHDNAI.toolSkinMapper.PDJAABBADIH;
|
|
int num4 = 0;
|
|
bool flag2 = pdjaabbadih != num4;
|
|
if (flag2)
|
|
{
|
|
EquipmentSkin pdjaabbadih2 = EGFEJGHDNAI.toolSkinMapper.PDJAABBADIH;
|
|
}
|
|
ToolSkinMapper toolSkinMapper2 = EGFEJGHDNAI.toolSkinMapper;
|
|
IntPtr cachedPtr = <FLFJCIPBAPA>k__BackingField.m_CachedPtr;
|
|
while (!flag2)
|
|
{
|
|
}
|
|
while (!flag2)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (num != -1)
|
|
{
|
|
}
|
|
IL_9A:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001982 RID: 6530 RVA: 0x00066384 File Offset: 0x00064584
|
|
[Token(Token = "0x6001982")]
|
|
[Address(RVA = "0x1FF2990", Offset = "0x1FF1990", VA = "0x181FF2990")]
|
|
public EquipmentSkin GetEquipmentSkin(string FNKOCNMJKLK, string HPBOADGJOKK)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
Dictionary<string, EquipmentSkin> paigmpfcbjk = this.PAIGMPFCBJK;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
goto IL_9A;
|
|
}
|
|
List<EquipmentSkinMappingData> toolSkinMaps = this.equipmentWardrobe.toolSkinMaps;
|
|
bool flag2;
|
|
if (flag2)
|
|
{
|
|
int[] buckets = paigmpfcbjk.buckets;
|
|
while (!flag2)
|
|
{
|
|
}
|
|
bool flag3;
|
|
Dictionary<string, EquipmentSkin> paigmpfcbjk2;
|
|
if (flag3)
|
|
{
|
|
while (!flag3)
|
|
{
|
|
}
|
|
paigmpfcbjk2 = this.PAIGMPFCBJK;
|
|
EquipmentSkin equipmentSkin;
|
|
paigmpfcbjk2[HPBOADGJOKK] = equipmentSkin;
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_B2;
|
|
}
|
|
while ((ulong)((uint)(-1)) == (ulong)(-1L))
|
|
{
|
|
}
|
|
if (paigmpfcbjk2 == (ulong)210L)
|
|
{
|
|
}
|
|
while (paigmpfcbjk2 != (ulong)160L)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
|
{
|
|
return (uint)(-1);
|
|
}
|
|
object[] array = new object[1];
|
|
if (HPBOADGJOKK != 0)
|
|
{
|
|
}
|
|
array[0] = HPBOADGJOKK;
|
|
Debug.LogErrorFormat("Failed to find skin {0}", array);
|
|
IL_9A:
|
|
throw new NullReferenceException();
|
|
IL_B2:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001983 RID: 6531 RVA: 0x00066454 File Offset: 0x00064654
|
|
[Token(Token = "0x6001983")]
|
|
[Address(RVA = "0x1FF2D80", Offset = "0x1FF1D80", VA = "0x181FF2D80")]
|
|
public CFOEKMPLMII GetEquipment(ToolSkinMapper BMHCFACJGLD)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
List<CFOEKMPLMII> list = this.<LOFBMKDCNLF>k__BackingField;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
while (this == 0)
|
|
{
|
|
}
|
|
IntPtr cachedPtr = this.m_CachedPtr;
|
|
while (!flag)
|
|
{
|
|
}
|
|
PhotonView pvCache = this.pvCache;
|
|
if (BMHCFACJGLD.LHHFBJLHBJH == 0)
|
|
{
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (num != -1)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001984 RID: 6532 RVA: 0x000664A4 File Offset: 0x000646A4
|
|
[Token(Token = "0x6001984")]
|
|
[Address(RVA = "0x1FF2F50", Offset = "0x1FF1F50", VA = "0x181FF2F50")]
|
|
public string GetFavoriteEquipmentSkin(ToolSkinMapper BMHCFACJGLD)
|
|
{
|
|
string prefabName = BMHCFACJGLD.PrefabName;
|
|
CFOEKMPLMII favoriteEquipment = this.GetFavoriteEquipment(prefabName);
|
|
if (favoriteEquipment != 0)
|
|
{
|
|
return favoriteEquipment.<EECLJGGBINB>k__BackingField;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001985 RID: 6533 RVA: 0x000664D0 File Offset: 0x000646D0
|
|
[Token(Token = "0x6001985")]
|
|
[Address(RVA = "0x1FF2F30", Offset = "0x1FF1F30", VA = "0x181FF2F30")]
|
|
public string GetFavoriteEquipmentSkin(string FNKOCNMJKLK)
|
|
{
|
|
CFOEKMPLMII favoriteEquipment;
|
|
do
|
|
{
|
|
favoriteEquipment = this.GetFavoriteEquipment(FNKOCNMJKLK);
|
|
}
|
|
while (favoriteEquipment == 0);
|
|
return favoriteEquipment.<EECLJGGBINB>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06001986 RID: 6534 RVA: 0x000664F0 File Offset: 0x000646F0
|
|
[Token(Token = "0x6001986")]
|
|
[Address(RVA = "0x1FF2F90", Offset = "0x1FF1F90", VA = "0x181FF2F90")]
|
|
public CFOEKMPLMII GetFavoriteEquipment(string FNKOCNMJKLK)
|
|
{
|
|
Dictionary<string, CFOEKMPLMII> dictionary = this.<AMGMDBDHIJN>k__BackingField;
|
|
int num = 0;
|
|
bool flag = dictionary.TryGetValue(FNKOCNMJKLK, num);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001987 RID: 6535 RVA: 0x00066514 File Offset: 0x00064714
|
|
[Token(Token = "0x6001987")]
|
|
[Address(RVA = "0x1FF3010", Offset = "0x1FF2010", VA = "0x181FF3010")]
|
|
public CFOEKMPLMII GetFavoriteEquipment(ToolSkinMapper BMHCFACJGLD)
|
|
{
|
|
string prefabName = BMHCFACJGLD.PrefabName;
|
|
return this.GetFavoriteEquipment(prefabName);
|
|
}
|
|
|
|
// Token: 0x06001988 RID: 6536 RVA: 0x00066538 File Offset: 0x00064738
|
|
[Token(Token = "0x6001988")]
|
|
[Address(RVA = "0x1FF4510", Offset = "0x1FF3510", VA = "0x181FF4510")]
|
|
public void ToggleFavoriteEquipment(ToolSkinMapper BMHCFACJGLD)
|
|
{
|
|
CFOEKMPLMII equipment = this.GetEquipment(BMHCFACJGLD);
|
|
if (equipment != 0)
|
|
{
|
|
Tool <HDJLOAIFKOG>k__BackingField = BMHCFACJGLD.<HDJLOAIFKOG>k__BackingField;
|
|
int num = 0;
|
|
if (<HDJLOAIFKOG>k__BackingField != num)
|
|
{
|
|
PlayerHand <PBCNKLKCIHJ>k__BackingField = BMHCFACJGLD.<HDJLOAIFKOG>k__BackingField.<PBCNKLKCIHJ>k__BackingField;
|
|
int num2 = 0;
|
|
if (<PBCNKLKCIHJ>k__BackingField != num2)
|
|
{
|
|
BMHCFACJGLD.<HDJLOAIFKOG>k__BackingField.<PBCNKLKCIHJ>k__BackingField.Vibrate(500, 1f);
|
|
RecRoomAudioClip toolFavoriteSkinAudio = SingletonMonoBehaviour.ONCPNMDGGKG.ToolFavoriteSkinAudio;
|
|
Transform transform = BMHCFACJGLD.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
}
|
|
string prefabName = BMHCFACJGLD.PrefabName;
|
|
this.ToggleFavoriteEquipment(equipment, prefabName);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001989 RID: 6537 RVA: 0x000665CC File Offset: 0x000647CC
|
|
[Token(Token = "0x6001989")]
|
|
[Address(RVA = "0x1FF4330", Offset = "0x1FF3330", VA = "0x181FF4330")]
|
|
public void ToggleFavoriteEquipment(CFOEKMPLMII FAFPPDGHACH, string FNKOCNMJKLK)
|
|
{
|
|
if (FAFPPDGHACH != 0)
|
|
{
|
|
int num = 0;
|
|
if ((FAFPPDGHACH.HKINHAIOEEK ? 1 : 0) != num)
|
|
{
|
|
int num2 = 0;
|
|
FAFPPDGHACH.HHFLKFOEHNL = num2 != 0;
|
|
bool flag = this.<AMGMDBDHIJN>k__BackingField.Remove(FNKOCNMJKLK);
|
|
NotificationManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
}
|
|
CFOEKMPLMII favoriteEquipment = this.GetFavoriteEquipment(FNKOCNMJKLK);
|
|
if (favoriteEquipment != 0)
|
|
{
|
|
int num3 = 0;
|
|
favoriteEquipment.HHFLKFOEHNL = num3 != 0;
|
|
bool flag2 = this.<AMGMDBDHIJN>k__BackingField.Remove(FNKOCNMJKLK);
|
|
}
|
|
FAFPPDGHACH.HHFLKFOEHNL = true;
|
|
Dictionary<string, CFOEKMPLMII> dictionary = this.<AMGMDBDHIJN>k__BackingField;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600198A RID: 6538 RVA: 0x00066698 File Offset: 0x00064898
|
|
[Token(Token = "0x600198A")]
|
|
[Address(RVA = "0x1FF3040", Offset = "0x1FF2040", VA = "0x181FF3040")]
|
|
public bool IsAlreadyPurchased(string COFLAJFOPEN)
|
|
{
|
|
List<CFOEKMPLMII> list = this.<LOFBMKDCNLF>k__BackingField;
|
|
Func<CFOEKMPLMII, string> <>9__37_ = EquipmentManager.<>c.<>9__37_0;
|
|
if (<>9__37_ == 0)
|
|
{
|
|
EquipmentManager.<>c.<>9__37_0 = (CFOEKMPLMII e) => e.<EECLJGGBINB>k__BackingField;
|
|
}
|
|
if (Enumerable.Contains<string>(Enumerable.Select<CFOEKMPLMII, string>(list, <>9__37_), COFLAJFOPEN))
|
|
{
|
|
return true;
|
|
}
|
|
GiftManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600198B RID: 6539 RVA: 0x000666E8 File Offset: 0x000648E8
|
|
[Token(Token = "0x600198B")]
|
|
[Address(RVA = "0x1FF4710", Offset = "0x1FF3710", VA = "0x181FF4710")]
|
|
public void UpdateUnlockedEquipmentsFor(string GGFIDKKIIJK, string ANDJHEONLKO)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
string equipmentModificationGuid = ANDJHEONLKO;
|
|
EquipmentManager <>4__this = this;
|
|
List<CFOEKMPLMII> list = this.<LOFBMKDCNLF>k__BackingField;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
int stringLength = ANDJHEONLKO.m_stringLength;
|
|
while (!flag)
|
|
{
|
|
}
|
|
while (!flag)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (num != -1)
|
|
{
|
|
}
|
|
DABKFAIHBBP dabkfaihbbp = ECINAMCDBJO.DJHHDCGJIJB(delegate(string error, List<CFOEKMPLMII> unlockedEquipments)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
});
|
|
Coroutine coroutine = base.StartCoroutine(dabkfaihbbp);
|
|
}
|
|
|
|
// Token: 0x0600198C RID: 6540 RVA: 0x00066764 File Offset: 0x00064964
|
|
[Token(Token = "0x600198C")]
|
|
[Address(RVA = "0x1FF3C60", Offset = "0x1FF2C60", VA = "0x181FF3C60")]
|
|
public void RevokeUnlockedEquipmentsFor(string GGFIDKKIIJK, string ANDJHEONLKO)
|
|
{
|
|
if (!this.EAJIJOLDCAG(GGFIDKKIIJK, ANDJHEONLKO))
|
|
{
|
|
CFOEKMPLMII cfoekmplmii = CFOEKMPLMII.NFHADFCEMML(GGFIDKKIIJK, ANDJHEONLKO);
|
|
this.LDALKIIDNHM.Add(cfoekmplmii);
|
|
bool flag = this.MKDBNACIJJD(GGFIDKKIIJK, ANDJHEONLKO);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600198D RID: 6541 RVA: 0x000667A0 File Offset: 0x000649A0
|
|
[Token(Token = "0x600198D")]
|
|
[Address(RVA = "0x1FF2800", Offset = "0x1FF1800", VA = "0x181FF2800")]
|
|
private bool EAJIJOLDCAG(string GGFIDKKIIJK, string ANDJHEONLKO)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
List<CFOEKMPLMII> ldalkiidnhm = this.LDALKIIDNHM;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
IntPtr cachedPtr = this.m_CachedPtr;
|
|
while (!flag)
|
|
{
|
|
}
|
|
PhotonView pvCache = this.pvCache;
|
|
while (!flag)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (num != -1)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600198E RID: 6542 RVA: 0x000667EC File Offset: 0x000649EC
|
|
[Token(Token = "0x600198E")]
|
|
[Address(RVA = "0x1FF3820", Offset = "0x1FF2820", VA = "0x181FF3820")]
|
|
private bool MKDBNACIJJD(string GGFIDKKIIJK, string ANDJHEONLKO)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
List<CFOEKMPLMII> list = this.<LOFBMKDCNLF>k__BackingField;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
while (!flag)
|
|
{
|
|
}
|
|
while (!flag)
|
|
{
|
|
}
|
|
bool flag2 = this.<AMGMDBDHIJN>k__BackingField.Remove(GGFIDKKIIJK);
|
|
List<CFOEKMPLMII> list2 = this.<LOFBMKDCNLF>k__BackingField;
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (num != -1)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600198F RID: 6543 RVA: 0x00066848 File Offset: 0x00064A48
|
|
[Token(Token = "0x600198F")]
|
|
[Address(RVA = "0x1FF2480", Offset = "0x1FF1480", VA = "0x181FF2480")]
|
|
private void BEAIGEDBBOH(Tool EGFEJGHDNAI)
|
|
{
|
|
if (!EGFEJGHDNAI.NDKHDFJHGPP && EGFEJGHDNAI.InstantiationParameters != 0)
|
|
{
|
|
Dictionary<string, object> instantiationParameters = EGFEJGHDNAI.InstantiationParameters;
|
|
bool flag;
|
|
ulong num;
|
|
if (flag && num != (ulong)0L)
|
|
{
|
|
PlayerSpawnedEquipment playerSpawnedEquipment = EGFEJGHDNAI.gameObject.AddComponent<PlayerSpawnedEquipment>();
|
|
EGFEJGHDNAI.<FLFJCIPBAPA>k__BackingField = playerSpawnedEquipment;
|
|
object obj = EGFEJGHDNAI.InstantiationParameters["Owner"];
|
|
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = EGFEJGHDNAI.<FLFJCIPBAPA>k__BackingField;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001990 RID: 6544 RVA: 0x000668AC File Offset: 0x00064AAC
|
|
[Token(Token = "0x6001990")]
|
|
[Address(RVA = "0x1FF4920", Offset = "0x1FF3920", VA = "0x181FF4920")]
|
|
public EquipmentManager()
|
|
{
|
|
Dictionary<string, EquipmentSkin> dictionary = new Dictionary();
|
|
this.PAIGMPFCBJK = dictionary;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04001350 RID: 4944
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4001350")]
|
|
private List<CFOEKMPLMII> LDALKIIDNHM;
|
|
|
|
// Token: 0x04001351 RID: 4945
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4001351")]
|
|
[SerializeField]
|
|
private EquipmentWardrobeRuntimeConfig equipmentWardrobe;
|
|
|
|
// Token: 0x04001352 RID: 4946
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4001352")]
|
|
private Dictionary<string, EquipmentSkin> PAIGMPFCBJK;
|
|
|
|
// Token: 0x02000334 RID: 820
|
|
[Token(Token = "0x2000334")]
|
|
[CompilerGenerated]
|
|
private sealed class LILPNGEGACM
|
|
{
|
|
// Token: 0x06001993 RID: 6547 RVA: 0x0006694C File Offset: 0x00064B4C
|
|
[Token(Token = "0x6001993")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public LILPNGEGACM()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001994 RID: 6548 RVA: 0x00066960 File Offset: 0x00064B60
|
|
[Token(Token = "0x6001994")]
|
|
[Address(RVA = "0x1B6D4F0", Offset = "0x1B6C4F0", VA = "0x181B6D4F0")]
|
|
internal void <DownloadUnlockedEquipments>b__0(string error, List<CFOEKMPLMII> selections)
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
if (selections == 0)
|
|
{
|
|
goto IL_5A;
|
|
}
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
break;
|
|
}
|
|
if (num == 0)
|
|
{
|
|
goto IL_5A;
|
|
}
|
|
}
|
|
EquipmentManager equipmentManager = this.<>4__this;
|
|
bool flag2;
|
|
while (flag2)
|
|
{
|
|
}
|
|
EquipmentManager equipmentManager2 = this.<>4__this;
|
|
List<CFOEKMPLMII> <LOFBMKDCNLF>k__BackingField = this.<>4__this.<LOFBMKDCNLF>k__BackingField;
|
|
Dictionary<string, CFOEKMPLMII> <AMGMDBDHIJN>k__BackingField = this.<>4__this.<AMGMDBDHIJN>k__BackingField;
|
|
throw new NullReferenceException();
|
|
IL_5A:
|
|
BPHGKAEDBPE.HADGLCCBNHM(this.callback, error);
|
|
}
|
|
|
|
// Token: 0x0400135B RID: 4955
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400135B")]
|
|
public EquipmentManager <>4__this;
|
|
|
|
// Token: 0x0400135C RID: 4956
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400135C")]
|
|
public BPHGKAEDBPE.CBEOHBCIPEA callback;
|
|
}
|
|
|
|
// Token: 0x02000336 RID: 822
|
|
[Token(Token = "0x2000336")]
|
|
[CompilerGenerated]
|
|
private sealed class ODKLBDNDDHN
|
|
{
|
|
// Token: 0x06001998 RID: 6552 RVA: 0x00066A54 File Offset: 0x00064C54
|
|
[Token(Token = "0x6001998")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public ODKLBDNDDHN()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001999 RID: 6553 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6001999")]
|
|
[Address(RVA = "0x1B6DB70", Offset = "0x1B6CB70", VA = "0x181B6DB70")]
|
|
internal void <UpdateUnlockedEquipmentsFor>b__0(string error, List<CFOEKMPLMII> unlockedEquipments)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0400135F RID: 4959
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400135F")]
|
|
public string equipmentPrefabName;
|
|
|
|
// Token: 0x04001360 RID: 4960
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001360")]
|
|
public string equipmentModificationGuid;
|
|
|
|
// Token: 0x04001361 RID: 4961
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001361")]
|
|
public EquipmentManager <>4__this;
|
|
}
|
|
}
|