243 lines
9.9 KiB
C#
243 lines
9.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Async;
|
|
using RecRoom.Avatar.Data.Runtime;
|
|
using RecRoom.Avatar.Outfit;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020003E8 RID: 1000
|
|
[Token(Token = "0x20003E8")]
|
|
[StructLayout(3)]
|
|
public class ImposterSpawnManager : SingletonMonoBehaviour<ImposterSpawnManager>
|
|
{
|
|
// Token: 0x06001EC5 RID: 7877 RVA: 0x00082048 File Offset: 0x00080248
|
|
[Token(Token = "0x6001EC5")]
|
|
[Address(RVA = "0x11D0260", Offset = "0x11CEC60", VA = "0x1811D0260")]
|
|
private void Start()
|
|
{
|
|
int num = 0;
|
|
Scheduler instance = SingletonMonoBehaviour.Instance;
|
|
Queue<ImposterSpawnManager.KNICAPDOFDI> pbaokcmdcnh = ImposterSpawnManager.PBAOKCMDCNH;
|
|
IEnumerator<ISchedule> enumerator = this.LPJIOPNMHJD(pbaokcmdcnh);
|
|
ISchedulerPromise schedulerPromise = instance.Run(this, enumerator);
|
|
num++;
|
|
}
|
|
|
|
// Token: 0x06001EC6 RID: 7878 RVA: 0x00082080 File Offset: 0x00080280
|
|
[Token(Token = "0x6001EC6")]
|
|
[Address(RVA = "0x11D01D0", Offset = "0x11CEBD0", VA = "0x1811D01D0", Slot = "5")]
|
|
protected override void OnDestroy()
|
|
{
|
|
ImposterSpawnManager.PBAOKCMDCNH.Clear();
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x06001EC7 RID: 7879 RVA: 0x000820A4 File Offset: 0x000802A4
|
|
[Token(Token = "0x6001EC7")]
|
|
[Address(RVA = "0x11D00E0", Offset = "0x11CEAE0", VA = "0x1811D00E0")]
|
|
public Promise<GameObject> LoadItemAsync(AvatarItem LACNEKHKOII)
|
|
{
|
|
ImposterSpawnManager.KNICAPDOFDI knicapdofdi;
|
|
knicapdofdi.NAAEMBKDEGI = (ulong)0L;
|
|
Promise<GameObject> promise = new Promise();
|
|
knicapdofdi.BAINEAGHDEH = promise;
|
|
ImposterSpawnManager.PBAOKCMDCNH.Enqueue(knicapdofdi);
|
|
return knicapdofdi.BAINEAGHDEH;
|
|
}
|
|
|
|
// Token: 0x06001EC8 RID: 7880 RVA: 0x000820E0 File Offset: 0x000802E0
|
|
[Token(Token = "0x6001EC8")]
|
|
[Address(RVA = "0x11CFFD0", Offset = "0x11CE9D0", VA = "0x1811CFFD0")]
|
|
public Promise<GameObject> LoadItemAsync(MJLPNOMEFKG NAAEMBKDEGI)
|
|
{
|
|
ImposterSpawnManager.KNICAPDOFDI knicapdofdi;
|
|
knicapdofdi.NAAEMBKDEGI = NAAEMBKDEGI;
|
|
if (NAAEMBKDEGI.<KFFMMFIJKJM>k__BackingField == GiftManager.HDMOIDKEOCM.OutfitItem)
|
|
{
|
|
}
|
|
Promise<GameObject> promise = new Promise();
|
|
knicapdofdi.BAINEAGHDEH = promise;
|
|
ImposterSpawnManager.PBAOKCMDCNH.Enqueue(knicapdofdi);
|
|
return knicapdofdi.BAINEAGHDEH;
|
|
}
|
|
|
|
// Token: 0x06001EC9 RID: 7881 RVA: 0x00082124 File Offset: 0x00080324
|
|
[Token(Token = "0x6001EC9")]
|
|
[Address(RVA = "0x11CFF60", Offset = "0x11CE960", VA = "0x1811CFF60")]
|
|
private IEnumerator<ISchedule> LPJIOPNMHJD(Queue<ImposterSpawnManager.KNICAPDOFDI> MJHMBNIDGCA)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001EC9)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> ImposterSpawnManager::LPJIOPNMHJD(System.Collections.Generic.Queue`1<ImposterSpawnManager/KNICAPDOFDI>)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(CDMCDIPIEDH::System.IDisposable.Dispose, ldloc:CDMCDIPIEDH(var_0))
|
|
stfld:ImposterSpawnManager(CDMCDIPIEDH::<>4__this, ldloc:CDMCDIPIEDH(var_0), ldloc:ImposterSpawnManager(this))
|
|
stfld:int32(CDMCDIPIEDH::<>1__state, ldloc:CDMCDIPIEDH(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:class [System]System.Collections.Generic.Queue`1<class ImposterSpawnManager/KNICAPDOFDI>(CDMCDIPIEDH::queue, ldloc:CDMCDIPIEDH(var_0), ldloc:class [System]System.Collections.Generic.Queue`1<class ImposterSpawnManager/KNICAPDOFDI>(MJHMBNIDGCA))
|
|
}
|
|
|
|
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: 0x06001ECA RID: 7882 RVA: 0x00082150 File Offset: 0x00080350
|
|
[Token(Token = "0x6001ECA")]
|
|
[Address(RVA = "0x11D0390", Offset = "0x11CED90", VA = "0x1811D0390")]
|
|
public ImposterSpawnManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400186C RID: 6252
|
|
[Token(Token = "0x400186C")]
|
|
private const int GICCDNMDNGP = 1;
|
|
|
|
// Token: 0x0400186D RID: 6253
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400186D")]
|
|
[SerializeField]
|
|
private GiftBoxMerchVisual giftBoxMerchVisualPrefab;
|
|
|
|
// Token: 0x0400186E RID: 6254
|
|
[Token(Token = "0x400186E")]
|
|
private static Queue<ImposterSpawnManager.KNICAPDOFDI> PBAOKCMDCNH = new Queue();
|
|
|
|
// Token: 0x020003E9 RID: 1001
|
|
[Token(Token = "0x20003E9")]
|
|
private class KNICAPDOFDI
|
|
{
|
|
// Token: 0x06001ECC RID: 7884 RVA: 0x0008217C File Offset: 0x0008037C
|
|
[Token(Token = "0x6001ECC")]
|
|
[Address(RVA = "0x11E0E00", Offset = "0x11DF800", VA = "0x1811E0E00")]
|
|
public KNICAPDOFDI(MJLPNOMEFKG giftDrop)
|
|
{
|
|
this.NAAEMBKDEGI = giftDrop;
|
|
if (giftDrop.<KFFMMFIJKJM>k__BackingField == GiftManager.HDMOIDKEOCM.OutfitItem)
|
|
{
|
|
}
|
|
Promise<GameObject> promise = new Promise();
|
|
this.BAINEAGHDEH = promise;
|
|
}
|
|
|
|
// Token: 0x06001ECD RID: 7885 RVA: 0x000821B4 File Offset: 0x000803B4
|
|
[Token(Token = "0x6001ECD")]
|
|
[Address(RVA = "0x11E0E90", Offset = "0x11DF890", VA = "0x1811E0E90")]
|
|
public KNICAPDOFDI(AvatarItem avatarItem)
|
|
{
|
|
this.NAAEMBKDEGI = (ulong)0L;
|
|
Promise<GameObject> promise = new Promise();
|
|
this.BAINEAGHDEH = promise;
|
|
}
|
|
|
|
// Token: 0x0400186F RID: 6255
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400186F")]
|
|
public MJLPNOMEFKG NAAEMBKDEGI;
|
|
|
|
// Token: 0x04001870 RID: 6256
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001870")]
|
|
public AvatarItem LACNEKHKOII;
|
|
|
|
// Token: 0x04001871 RID: 6257
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001871")]
|
|
public Promise<GameObject> BAINEAGHDEH;
|
|
}
|
|
|
|
// Token: 0x020003EA RID: 1002
|
|
[Token(Token = "0x20003EA")]
|
|
[CompilerGenerated]
|
|
private sealed class OAKECADMGKM
|
|
{
|
|
// Token: 0x06001ECE RID: 7886 RVA: 0x000821E0 File Offset: 0x000803E0
|
|
[Token(Token = "0x6001ECE")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public OAKECADMGKM()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001ECF RID: 7887 RVA: 0x000821F4 File Offset: 0x000803F4
|
|
[Token(Token = "0x6001ECF")]
|
|
[Address(RVA = "0x11E3C20", Offset = "0x11E2620", VA = "0x1811E3C20")]
|
|
internal bool <ProcessQueue>b__0()
|
|
{
|
|
Queue<ImposterSpawnManager.KNICAPDOFDI> queue = this.queue;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x04001872 RID: 6258
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001872")]
|
|
public Queue<ImposterSpawnManager.KNICAPDOFDI> queue;
|
|
|
|
// Token: 0x04001873 RID: 6259
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001873")]
|
|
public Func<bool> <>9__0;
|
|
}
|
|
|
|
// Token: 0x020003EB RID: 1003
|
|
[Token(Token = "0x20003EB")]
|
|
[CompilerGenerated]
|
|
private sealed class DHIDMGEBIKE
|
|
{
|
|
// Token: 0x06001ED0 RID: 7888 RVA: 0x00082210 File Offset: 0x00080410
|
|
[Token(Token = "0x6001ED0")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public DHIDMGEBIKE()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001ED1 RID: 7889 RVA: 0x00082224 File Offset: 0x00080424
|
|
[Token(Token = "0x6001ED1")]
|
|
[Address(RVA = "0x11CCD40", Offset = "0x11CB740", VA = "0x1811CCD40")]
|
|
internal void <ProcessQueue>b__2(GameObject visualGo)
|
|
{
|
|
Promise<GameObject> baineaghdeh = this.loadRequest.BAINEAGHDEH;
|
|
int num = 0;
|
|
if (visualGo != num)
|
|
{
|
|
global::UnityEngine.Object.Destroy(visualGo);
|
|
return;
|
|
}
|
|
int num2 = 0;
|
|
if (visualGo != num2)
|
|
{
|
|
if (this.currentItem != 0)
|
|
{
|
|
}
|
|
OutfitManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
AvatarItem lacnekhkoii = this.loadRequest.LACNEKHKOII;
|
|
string itemFriendlyName = instance.GetItemFriendlyName(lacnekhkoii);
|
|
visualGo.name = itemFriendlyName;
|
|
}
|
|
this.loadRequest.BAINEAGHDEH.Complete(visualGo);
|
|
}
|
|
|
|
// Token: 0x04001874 RID: 6260
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001874")]
|
|
public ImposterSpawnManager.KNICAPDOFDI loadRequest;
|
|
|
|
// Token: 0x04001875 RID: 6261
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001875")]
|
|
public MJLPNOMEFKG currentItem;
|
|
}
|
|
}
|