using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using Cpp2IlInjected; using Photon.Pun; using RecRoom.Core.GameManagement; using UnityEngine; namespace RecRoom.Activities.Quest { // Token: 0x02002741 RID: 10049 [Token(Token = "0x2002741")] [StructLayout(3)] public class QuestGearManager : MonoBehaviourPun { // Token: 0x17002F66 RID: 12134 // (get) Token: 0x06011891 RID: 71825 RVA: 0x0042CB20 File Offset: 0x0042AD20 // (set) Token: 0x06011892 RID: 71826 RVA: 0x0042CB34 File Offset: 0x0042AD34 [Token(Token = "0x17002F66")] public static QuestGearManager ONCPNMDGGKG { [Token(Token = "0x6011891")] [Address(RVA = "0x1ADEC30", Offset = "0x1ADD630", VA = "0x181ADEC30")] get; [Token(Token = "0x6011892")] [Address(RVA = "0x1ADE970", Offset = "0x1ADD370", VA = "0x181ADE970")] private set; } // Token: 0x06011893 RID: 71827 RVA: 0x0042CB48 File Offset: 0x0042AD48 [Token(Token = "0x6011893")] [Address(RVA = "0x1ADDA10", Offset = "0x1ADC410", VA = "0x181ADDA10", Slot = "13")] protected override void Awake() { Delegate delegate2; do { base..ctor(); QuestGearManager questGearManager = QuestGearManager.k__BackingField; int num = 0; if (questGearManager == num) { QuestGearManager.k__BackingField = this; } int num2 = (int)this.campaign; int num3 = 0; QuestGearEntry[] array; if (array != 0) { int length = array.Length; if (num3 < length) { EOEOFMCNLOL dpjpbcanjkj = this.DPJPBCANJKJ; num3 += 2; num3 += num3; num3++; } } GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG; int num4 = 0; if (instance != num4) { GameSpawnManager spawnManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.spawnManager; GameSpawnManager.KIFNGIBBMDP kifngibbmdp = new GameSpawnManager.KIFNGIBBMDP(this.KCNCMMFELDN); spawnManager.EAIPEBLDFBK += kifngibbmdp; int num5 = (int)this.campaign; SpawnableTool[] array2; if (array2 != 0 && array2.Length != num3) { Func func; if (QuestGearManager.<>c.<>9__12_0 == 0) { func = delegate(SpawnableTool t) { int num8 = 0; return t != num8; }; QuestGearManager.<>c.<>9__12_0 = func; } IEnumerable enumerable = Enumerable.Where(array2, func); Func func2; if (QuestGearManager.<>c.<>9__12_1 == 0) { func2 = (SpawnableTool t) => t.OPLHMKFCNOL; QuestGearManager.<>c.<>9__12_1 = func2; } OGNBCNBPFCC[] array3 = Enumerable.ToArray(Enumerable.Select(enumerable, func2)); GameSpawnManager spawnManager2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.spawnManager; } } QuestManager instance2 = QuestManager.ONCPNMDGGKG; int num6 = 0; if (instance2 != num6) { QuestManager instance3 = QuestManager.ONCPNMDGGKG; Action action = new Action(this.HIGNANAKNFJ); Action njjncngjljb = instance3.NJJNCNGJLJB; Delegate @delegate = Delegate.Combine(njjncngjljb, action); if (@delegate != 0 && @delegate == 0) { continue; } while (@delegate != njjncngjljb) { } } int num7 = (int)this.campaign; QuestGear questGear; this.FHMIGEFPAFJ = questGear; EquipmentSpawnerChest.PHJIFMHOLFC chestOpenEvent = EquipmentSpawnerChest.ChestOpenEvent; EquipmentSpawnerChest.PHJIFMHOLFC phjifmholfc = new EquipmentSpawnerChest.PHJIFMHOLFC(this.IOADHCKAOEB); delegate2 = Delegate.Combine(chestOpenEvent, phjifmholfc); } while (delegate2 != 0 && delegate2 == 0); EquipmentSpawnerChest.ChestOpenEvent = delegate2; } // Token: 0x06011894 RID: 71828 RVA: 0x0042CD04 File Offset: 0x0042AF04 [Token(Token = "0x6011894")] [Address(RVA = "0x1ADE370", Offset = "0x1ADCD70", VA = "0x181ADE370")] private void IFBDHKOKDMC() { int num = (int)this.campaign; QuestGearEntry[] array; if (array != 0) { int num2 = 0; int length = array.Length; if (num2 < length) { EOEOFMCNLOL dpjpbcanjkj = this.DPJPBCANJKJ; num2 += 2; num2 += num2; num2++; } } } // Token: 0x06011895 RID: 71829 RVA: 0x0042CD44 File Offset: 0x0042AF44 [Token(Token = "0x6011895")] [Address(RVA = "0x1ADE9B0", Offset = "0x1ADD3B0", VA = "0x181ADE9B0", Slot = "14")] protected override void OnDestroy() { Delegate @delegate; int num; do { EquipmentSpawnerChest.PHJIFMHOLFC chestOpenEvent = EquipmentSpawnerChest.ChestOpenEvent; EquipmentSpawnerChest.PHJIFMHOLFC phjifmholfc = new EquipmentSpawnerChest.PHJIFMHOLFC(this.IOADHCKAOEB); @delegate = Delegate.Remove(chestOpenEvent, phjifmholfc); num = 0; } while (@delegate != 0 && @delegate == 0); EquipmentSpawnerChest.ChestOpenEvent = num; if (QuestGearManager.k__BackingField == this) { } GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG; int num2 = 0; if (instance != num2) { NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.spawnManager.RemoveToolTypesToNotDestroyWhenReset(this); } base.OnDestroy(); } // Token: 0x06011896 RID: 71830 RVA: 0x0042CDB8 File Offset: 0x0042AFB8 [Token(Token = "0x6011896")] [Address(RVA = "0x1ADE440", Offset = "0x1ADCE40", VA = "0x181ADE440")] private void IOADHCKAOEB(EquipmentSpawnerChest MMOJOJPDKIC) { QuestGearManager.AOCHIFIDJDD aochifidjdd; aochifidjdd.System.IDisposable.Dispose(); aochifidjdd.<>1__state = (int)((ulong)0L); aochifidjdd.<>4__this = this; aochifidjdd.chest = MMOJOJPDKIC; Coroutine coroutine = base.StartCoroutine(aochifidjdd); } // Token: 0x06011897 RID: 71831 RVA: 0x0042CDEC File Offset: 0x0042AFEC [Token(Token = "0x6011897")] [Address(RVA = "0x1ADE070", Offset = "0x1ADCA70", VA = "0x181ADE070")] private IEnumerator DFEOGMJABEO(EquipmentSpawnerChest MMOJOJPDKIC) { /* An exception occurred when decompiling this method (06011897) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator RecRoom.Activities.Quest.QuestGearManager::DFEOGMJABEO(RecRoom.Core.GameManagement.EquipmentSpawnerChest) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: call:void(AOCHIFIDJDD::System.IDisposable.Dispose, ldloc:AOCHIFIDJDD(var_0)) stfld:QuestGearManager(AOCHIFIDJDD::<>4__this, ldloc:AOCHIFIDJDD(var_0), ldloc:QuestGearManager(this)) stfld:int32(AOCHIFIDJDD::<>1__state, ldloc:AOCHIFIDJDD(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0))) stfld:EquipmentSpawnerChest(AOCHIFIDJDD::chest, ldloc:AOCHIFIDJDD(var_0), ldloc:EquipmentSpawnerChest(MMOJOJPDKIC)) } 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: 0x06011898 RID: 71832 RVA: 0x0042CE18 File Offset: 0x0042B018 [Token(Token = "0x6011898")] [Address(RVA = "0x1ADE4C0", Offset = "0x1ADCEC0", VA = "0x181ADE4C0")] private bool JAHABDLIMGP(Vector3 AFNKLLAKKJN, Quaternion IKJGOJBKKEK, float HGKCFKKJNLC, Vector3 EAOCEINLAKP, Vector3 KHJFDILDLAD) { if (PhotonNetwork.IsMasterClient) { GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG; int num = 0; if (!(instance == num)) { GameObject gameObject = this.DPJPBCANJKJ.OBNBDDNFNDN(); int num2 = 0; if (!(gameObject == num2)) { float z = AFNKLLAKKJN.z; } } } throw new NullReferenceException(); } // Token: 0x06011899 RID: 71833 RVA: 0x0042CE6C File Offset: 0x0042B06C [Token(Token = "0x6011899")] [Address(RVA = "0x1ADE6A0", Offset = "0x1ADD0A0", VA = "0x181ADE6A0")] private bool JOLMDFMCLHJ(GameObject JONMINNMMDD, Vector3 AFNKLLAKKJN, Quaternion IKJGOJBKKEK, float HGKCFKKJNLC, Vector3 EAOCEINLAKP, Vector3 KHJFDILDLAD) { SpawnableTool component = JONMINNMMDD.GetComponent(); int num = 0; bool flag = component != num; if (!flag) { return flag; } GameSpawnManager spawnManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.spawnManager; OGNBCNBPFCC type = component.OPLHMKFCNOL; float z = AFNKLLAKKJN.z; int num2 = 0; Tool tool; if (tool != num2) { RigidbodyEx rigidbodyEx = tool.rigidbodyEx; int num3 = 0; if (rigidbodyEx != num3) { RigidbodyEx rigidbodyEx2 = tool.rigidbodyEx; RigidbodyEx rigidbodyEx3 = tool.rigidbodyEx; } } throw new NullReferenceException(); } // Token: 0x0601189A RID: 71834 RVA: 0x0042CEEC File Offset: 0x0042B0EC [Token(Token = "0x601189A")] [Address(RVA = "0x1ADE8F0", Offset = "0x1ADD2F0", VA = "0x181ADE8F0")] private void KCNCMMFELDN(SpawnableTool AJDICJFMELD) { int num = 0; if (AJDICJFMELD != num) { Tool k__BackingField = AJDICJFMELD.k__BackingField; this.FIMBAPBOMFP(k__BackingField); } } // Token: 0x0601189B RID: 71835 RVA: 0x0042CF1C File Offset: 0x0042B11C [Token(Token = "0x601189B")] [Address(RVA = "0x1ADE1C0", Offset = "0x1ADCBC0", VA = "0x181ADE1C0")] private void HIGNANAKNFJ(QuestGameplayRoom FMNMMNEPPPA) { int num; do { num = 0; IReadOnlyCollection tools = FMNMMNEPPPA.Tools; if (tools != 0) { if (num >= tools) { goto IL_1D; } num += num; if (num != tools) { num++; goto IL_1D; } IL_24: num += num; num += 19; goto IL_2D; IL_1D: this.FIMBAPBOMFP(num); goto IL_24; } IL_2D: if (tools != 0) { } if (num != -1) { } } while (num != 0); } // Token: 0x0601189C RID: 71836 RVA: 0x0042CF68 File Offset: 0x0042B168 [Token(Token = "0x601189C")] [Address(RVA = "0x1ADE0E0", Offset = "0x1ADCAE0", VA = "0x181ADE0E0")] private void FIMBAPBOMFP(Tool EGFEJGHDNAI) { int num = 0; if (EGFEJGHDNAI != num) { QuestGear fhmigefpafj = this.FHMIGEFPAFJ; int num2 = 0; bool flag = fhmigefpafj != num2; GameObject gameObject = EGFEJGHDNAI.gameObject; Type type = this.FHMIGEFPAFJ.GetType(); Component component = gameObject.Internal_AddComponentWithType(type); } } // Token: 0x0601189D RID: 71837 RVA: 0x0042CFB8 File Offset: 0x0042B1B8 [Token(Token = "0x601189D")] [Address(RVA = "0x1ADEBD0", Offset = "0x1ADD5D0", VA = "0x181ADEBD0")] public QuestGearManager() { EOEOFMCNLOL eoeofmcnlol = new EOEOFMCNLOL(); this.DPJPBCANJKJ = eoeofmcnlol; base..ctor(); } // Token: 0x0400BBB3 RID: 48051 [Token(Token = "0x400BBB3")] private const float FJLBHOHFGDP = 0.05f; // Token: 0x0400BBB4 RID: 48052 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x400BBB4")] [SerializeField] [Header("Quest")] private CANIMKJOJDP campaign; // Token: 0x0400BBB6 RID: 48054 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x400BBB6")] private EOEOFMCNLOL DPJPBCANJKJ; // Token: 0x0400BBB7 RID: 48055 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x400BBB7")] private NDNBFFNDPMB HDKOHJMKGOD; // Token: 0x0400BBB8 RID: 48056 [global::Cpp2IlInjected.FieldOffset(Offset = "0x54")] [Token(Token = "0x400BBB8")] private NDNBFFNDPMB DNNNCIOBNIM; // Token: 0x0400BBB9 RID: 48057 [global::Cpp2IlInjected.FieldOffset(Offset = "0x58")] [Token(Token = "0x400BBB9")] private OGNBCNBPFCC[] JACCBMLMLAA; // Token: 0x0400BBBA RID: 48058 [global::Cpp2IlInjected.FieldOffset(Offset = "0x60")] [Token(Token = "0x400BBBA")] private OGNBCNBPFCC[] PPLAHKGJCEG; // Token: 0x0400BBBB RID: 48059 [global::Cpp2IlInjected.FieldOffset(Offset = "0x68")] [Token(Token = "0x400BBBB")] private QuestGear FHMIGEFPAFJ; } }