Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/RecRoom/Activities/Quest/QuestGearManager.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

381 lines
13 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Cpp2IlInjected;
using Photon.Pun;
using RecRoom.Core.GameManagement;
using UnityEngine;
namespace RecRoom.Activities.Quest
{
// Token: 0x02002D1F RID: 11551
[Token(Token = "0x2002D1F")]
public class QuestGearManager : MonoBehaviourPun
{
// Token: 0x170035E3 RID: 13795
// (get) Token: 0x0601369F RID: 79519 RVA: 0x00479468 File Offset: 0x00477668
// (set) Token: 0x060136A0 RID: 79520 RVA: 0x0047947C File Offset: 0x0047767C
[Token(Token = "0x170035E3")]
public static QuestGearManager ONCPNMDGGKG
{
[Token(Token = "0x601369F")]
[Address(RVA = "0x2063EA0", Offset = "0x2062EA0", VA = "0x182063EA0")]
get;
[Token(Token = "0x60136A0")]
[Address(RVA = "0x2063BE0", Offset = "0x2062BE0", VA = "0x182063BE0")]
private set;
}
// Token: 0x060136A1 RID: 79521 RVA: 0x00479490 File Offset: 0x00477690
[Token(Token = "0x60136A1")]
[Address(RVA = "0x2062CB0", Offset = "0x2061CB0", VA = "0x182062CB0", Slot = "13")]
protected override void Awake()
{
Delegate delegate2;
do
{
base..ctor();
QuestGearManager questGearManager = QuestGearManager.<OCDLBPHJMOP>k__BackingField;
int num = 0;
if (questGearManager == num)
{
QuestGearManager.<OCDLBPHJMOP>k__BackingField = this;
}
int num2 = (int)this.campaign;
int num3 = 0;
QuestGearEntry[] array;
if (array != 0)
{
int length = array.Length;
if (num3 < length)
{
EOEOFMCNLOL<GameObject> 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<SpawnableTool, bool> 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<SpawnableTool> enumerable = Enumerable.Where<SpawnableTool>(array2, func);
Func<SpawnableTool, OGNBCNBPFCC> func2;
if (QuestGearManager.<>c.<>9__12_1 == 0)
{
func2 = (SpawnableTool t) => t.OPLHMKFCNOL;
QuestGearManager.<>c.<>9__12_1 = func2;
}
OGNBCNBPFCC[] array3 = Enumerable.ToArray<OGNBCNBPFCC>(Enumerable.Select<SpawnableTool, OGNBCNBPFCC>(enumerable, func2));
GameSpawnManager spawnManager2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.spawnManager;
}
}
QuestManager instance2 = QuestManager.ONCPNMDGGKG;
int num6 = 0;
if (instance2 != num6)
{
QuestManager instance3 = QuestManager.ONCPNMDGGKG;
Action<QuestGameplayRoom> action = new Action(this.HIGNANAKNFJ);
Action<QuestGameplayRoom> 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: 0x060136A2 RID: 79522 RVA: 0x0047964C File Offset: 0x0047784C
[Token(Token = "0x60136A2")]
[Address(RVA = "0x20635E0", Offset = "0x20625E0", VA = "0x1820635E0")]
private void IFBDHKOKDMC()
{
int num = (int)this.campaign;
QuestGearEntry[] array;
if (array != 0)
{
int num2 = 0;
int length = array.Length;
if (num2 < length)
{
EOEOFMCNLOL<GameObject> dpjpbcanjkj = this.DPJPBCANJKJ;
num2 += 2;
num2 += num2;
num2++;
}
}
}
// Token: 0x060136A3 RID: 79523 RVA: 0x0047968C File Offset: 0x0047788C
[Token(Token = "0x60136A3")]
[Address(RVA = "0x2063C20", Offset = "0x2062C20", VA = "0x182063C20", 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.<OCDLBPHJMOP>k__BackingField == this)
{
}
GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
int num2 = 0;
if (instance != num2)
{
NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.spawnManager.RemoveToolTypesToNotDestroyWhenReset(this);
}
base.OnDestroy();
}
// Token: 0x060136A4 RID: 79524 RVA: 0x00479700 File Offset: 0x00477900
[Token(Token = "0x60136A4")]
[Address(RVA = "0x20636B0", Offset = "0x20626B0", VA = "0x1820636B0")]
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: 0x060136A5 RID: 79525 RVA: 0x00479734 File Offset: 0x00477934
[Token(Token = "0x60136A5")]
[Address(RVA = "0x2063310", Offset = "0x2062310", VA = "0x182063310")]
private IEnumerator DFEOGMJABEO(EquipmentSpawnerChest MMOJOJPDKIC)
{
/*
An exception occurred when decompiling this method (060136A5)
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: 0x060136A6 RID: 79526 RVA: 0x00479760 File Offset: 0x00477960
[Token(Token = "0x60136A6")]
[Address(RVA = "0x2063730", Offset = "0x2062730", VA = "0x182063730")]
private bool JAHABDLIMGP(Vector3 AFNKLLAKKJN, Quaternion IKJGOJBKKEK, float HGKCFKKJNLC, Vector3 EAOCEINLAKP, Vector3 KHJFDILDLAD)
{
if (KKPBCOOONNK.BNNCCCFFALC)
{
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: 0x060136A7 RID: 79527 RVA: 0x004797B4 File Offset: 0x004779B4
[Token(Token = "0x60136A7")]
[Address(RVA = "0x2063910", Offset = "0x2062910", VA = "0x182063910")]
private bool JOLMDFMCLHJ(GameObject JONMINNMMDD, Vector3 AFNKLLAKKJN, Quaternion IKJGOJBKKEK, float HGKCFKKJNLC, Vector3 EAOCEINLAKP, Vector3 KHJFDILDLAD)
{
SpawnableTool component = JONMINNMMDD.GetComponent<SpawnableTool>();
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: 0x060136A8 RID: 79528 RVA: 0x00479834 File Offset: 0x00477A34
[Token(Token = "0x60136A8")]
[Address(RVA = "0x2063B60", Offset = "0x2062B60", VA = "0x182063B60")]
private void KCNCMMFELDN(SpawnableTool AJDICJFMELD)
{
int num = 0;
if (AJDICJFMELD != num)
{
Tool <MBFGOCOFHHM>k__BackingField = AJDICJFMELD.<MBFGOCOFHHM>k__BackingField;
this.FIMBAPBOMFP(<MBFGOCOFHHM>k__BackingField);
}
}
// Token: 0x060136A9 RID: 79529 RVA: 0x00479864 File Offset: 0x00477A64
[Token(Token = "0x60136A9")]
[Address(RVA = "0x2063460", Offset = "0x2062460", VA = "0x182063460")]
private void HIGNANAKNFJ(QuestGameplayRoom FMNMMNEPPPA)
{
int num;
do
{
num = 0;
IReadOnlyCollection<Tool> 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)
{
}
}
while (num != 0);
}
// Token: 0x060136AA RID: 79530 RVA: 0x004798AC File Offset: 0x00477AAC
[Token(Token = "0x60136AA")]
[Address(RVA = "0x2063380", Offset = "0x2062380", VA = "0x182063380")]
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: 0x060136AB RID: 79531 RVA: 0x004798FC File Offset: 0x00477AFC
[Token(Token = "0x60136AB")]
[Address(RVA = "0x2063E40", Offset = "0x2062E40", VA = "0x182063E40")]
public QuestGearManager()
{
EOEOFMCNLOL<GameObject> eoeofmcnlol = new EOEOFMCNLOL();
this.DPJPBCANJKJ = eoeofmcnlol;
base..ctor();
}
// Token: 0x0400C93D RID: 51517
[Token(Token = "0x400C93D")]
private const float FJLBHOHFGDP = 0.05f;
// Token: 0x0400C93E RID: 51518
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400C93E")]
[SerializeField]
[Header("Quest")]
private CANIMKJOJDP campaign;
// Token: 0x0400C940 RID: 51520
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400C940")]
private EOEOFMCNLOL<GameObject> DPJPBCANJKJ;
// Token: 0x0400C941 RID: 51521
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400C941")]
private NDNBFFNDPMB HDKOHJMKGOD;
// Token: 0x0400C942 RID: 51522
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x400C942")]
private NDNBFFNDPMB DNNNCIOBNIM;
// Token: 0x0400C943 RID: 51523
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400C943")]
private OGNBCNBPFCC[] JACCBMLMLAA;
// Token: 0x0400C944 RID: 51524
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400C944")]
private OGNBCNBPFCC[] PPLAHKGJCEG;
// Token: 0x0400C945 RID: 51525
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400C945")]
private QuestGear FHMIGEFPAFJ;
}
}