Files
niko 8fc35183db a
2026-04-11 22:19:20 +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: 0x02002C36 RID: 11318
[Token(Token = "0x2002C36")]
public class QuestGearManager : MonoBehaviourPun
{
// Token: 0x1700352F RID: 13615
// (get) Token: 0x0601325E RID: 78430 RVA: 0x0046F70C File Offset: 0x0046D90C
// (set) Token: 0x0601325F RID: 78431 RVA: 0x0046F720 File Offset: 0x0046D920
[Token(Token = "0x1700352F")]
public static QuestGearManager ONCPNMDGGKG
{
[Token(Token = "0x601325E")]
[Address(RVA = "0x1576A80", Offset = "0x1575880", VA = "0x181576A80")]
get;
[Token(Token = "0x601325F")]
[Address(RVA = "0x15767C0", Offset = "0x15755C0", VA = "0x1815767C0")]
private set;
}
// Token: 0x06013260 RID: 78432 RVA: 0x0046F734 File Offset: 0x0046D934
[Token(Token = "0x6013260")]
[Address(RVA = "0x1575890", Offset = "0x1574690", VA = "0x181575890", 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: 0x06013261 RID: 78433 RVA: 0x0046F8F0 File Offset: 0x0046DAF0
[Token(Token = "0x6013261")]
[Address(RVA = "0x15761C0", Offset = "0x1574FC0", VA = "0x1815761C0")]
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: 0x06013262 RID: 78434 RVA: 0x0046F930 File Offset: 0x0046DB30
[Token(Token = "0x6013262")]
[Address(RVA = "0x1576800", Offset = "0x1575600", VA = "0x181576800", 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: 0x06013263 RID: 78435 RVA: 0x0046F9A4 File Offset: 0x0046DBA4
[Token(Token = "0x6013263")]
[Address(RVA = "0x1576290", Offset = "0x1575090", VA = "0x181576290")]
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: 0x06013264 RID: 78436 RVA: 0x0046F9D8 File Offset: 0x0046DBD8
[Token(Token = "0x6013264")]
[Address(RVA = "0x1575EF0", Offset = "0x1574CF0", VA = "0x181575EF0")]
private IEnumerator DFEOGMJABEO(EquipmentSpawnerChest MMOJOJPDKIC)
{
/*
An exception occurred when decompiling this method (06013264)
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 1660
*/;
}
// Token: 0x06013265 RID: 78437 RVA: 0x0046FA04 File Offset: 0x0046DC04
[Token(Token = "0x6013265")]
[Address(RVA = "0x1576310", Offset = "0x1575110", VA = "0x181576310")]
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: 0x06013266 RID: 78438 RVA: 0x0046FA58 File Offset: 0x0046DC58
[Token(Token = "0x6013266")]
[Address(RVA = "0x15764F0", Offset = "0x15752F0", VA = "0x1815764F0")]
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: 0x06013267 RID: 78439 RVA: 0x0046FAD8 File Offset: 0x0046DCD8
[Token(Token = "0x6013267")]
[Address(RVA = "0x1576740", Offset = "0x1575540", VA = "0x181576740")]
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: 0x06013268 RID: 78440 RVA: 0x0046FB08 File Offset: 0x0046DD08
[Token(Token = "0x6013268")]
[Address(RVA = "0x1576040", Offset = "0x1574E40", VA = "0x181576040")]
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: 0x06013269 RID: 78441 RVA: 0x0046FB50 File Offset: 0x0046DD50
[Token(Token = "0x6013269")]
[Address(RVA = "0x1575F60", Offset = "0x1574D60", VA = "0x181575F60")]
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: 0x0601326A RID: 78442 RVA: 0x0046FBA0 File Offset: 0x0046DDA0
[Token(Token = "0x601326A")]
[Address(RVA = "0x1576A20", Offset = "0x1575820", VA = "0x181576A20")]
public QuestGearManager()
{
EOEOFMCNLOL<GameObject> eoeofmcnlol = new EOEOFMCNLOL();
this.DPJPBCANJKJ = eoeofmcnlol;
base..ctor();
}
// Token: 0x0400C729 RID: 50985
[Token(Token = "0x400C729")]
private const float FJLBHOHFGDP = 0.05f;
// Token: 0x0400C72A RID: 50986
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400C72A")]
[SerializeField]
[Header("Quest")]
private CANIMKJOJDP campaign;
// Token: 0x0400C72C RID: 50988
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400C72C")]
private EOEOFMCNLOL<GameObject> DPJPBCANJKJ;
// Token: 0x0400C72D RID: 50989
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400C72D")]
private NDNBFFNDPMB HDKOHJMKGOD;
// Token: 0x0400C72E RID: 50990
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x400C72E")]
private NDNBFFNDPMB DNNNCIOBNIM;
// Token: 0x0400C72F RID: 50991
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400C72F")]
private OGNBCNBPFCC[] JACCBMLMLAA;
// Token: 0x0400C730 RID: 50992
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400C730")]
private OGNBCNBPFCC[] PPLAHKGJCEG;
// Token: 0x0400C731 RID: 50993
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400C731")]
private QuestGear FHMIGEFPAFJ;
}
}