216 lines
8.0 KiB
C#
216 lines
8.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Async;
|
|
using UnityEngine;
|
|
|
|
namespace RRUI.Dialogs
|
|
{
|
|
// Token: 0x0200081A RID: 2074
|
|
[Token(Token = "0x200081A")]
|
|
[CreateAssetMenu]
|
|
[StructLayout(3)]
|
|
public class DialogsConfig : ScriptableObject
|
|
{
|
|
// Token: 0x17000A15 RID: 2581
|
|
// (get) Token: 0x0600399E RID: 14750 RVA: 0x000F2A7C File Offset: 0x000F0C7C
|
|
[Token(Token = "0x17000A15")]
|
|
public static DialogsConfig Instance
|
|
{
|
|
[Token(Token = "0x600399E")]
|
|
[Address(RVA = "0x107A000", Offset = "0x1078A00", VA = "0x18107A000")]
|
|
get
|
|
{
|
|
DialogsConfig instance = DialogsConfig._instance;
|
|
int num = 0;
|
|
if (instance == num)
|
|
{
|
|
DialogsConfig._instance = OIOLECLLCPM.GDJBDCKGDLE<DialogsConfig>(0);
|
|
DialogsConfig instance2 = DialogsConfig._instance;
|
|
int num2 = 0;
|
|
if (instance2 == num2)
|
|
{
|
|
Debug.LogError("Failed to load Dialogs object");
|
|
}
|
|
}
|
|
return DialogsConfig._instance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600399F RID: 14751 RVA: 0x000F2AC8 File Offset: 0x000F0CC8
|
|
[Token(Token = "0x600399F")]
|
|
[Address(RVA = "0x1079B10", Offset = "0x1078510", VA = "0x181079B10")]
|
|
private static void OFFLOPLJBBG()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
DialogsConfig.prefabsByDialogType = new Dictionary();
|
|
DialogsConfig instance = DialogsConfig._instance;
|
|
int num2 = 0;
|
|
if (instance == num2)
|
|
{
|
|
DialogsConfig._instance = OIOLECLLCPM.GDJBDCKGDLE<DialogsConfig>(0);
|
|
DialogsConfig instance2 = DialogsConfig._instance;
|
|
int num3 = 0;
|
|
if (instance2 == num3)
|
|
{
|
|
Debug.LogError("Failed to load Dialogs object");
|
|
}
|
|
}
|
|
List<DialogsConfig.View> list = DialogsConfig._instance.views;
|
|
DialogsConfig instance3 = DialogsConfig._instance;
|
|
num += num;
|
|
num++;
|
|
Dictionary<DLKPBLNKLAD, GameObject> dictionary = DialogsConfig.prefabsByDialogType;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
int num4 = 0;
|
|
string text;
|
|
Debug.LogError(text);
|
|
num4 += num4;
|
|
text += instance3;
|
|
}
|
|
Dictionary<DLKPBLNKLAD, GameObject> dictionary2 = DialogsConfig.prefabsByDialogType;
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x060039A0 RID: 14752 RVA: 0x000F2B88 File Offset: 0x000F0D88
|
|
[Token(Token = "0x60039A0")]
|
|
[Address(RVA = "0x1079A00", Offset = "0x1078400", VA = "0x181079A00")]
|
|
public static IPromise<GameObject> ODJFJBABAAO(DLKPBLNKLAD OIPDFDMPPEA)
|
|
{
|
|
DialogsConfig.OFFLOPLJBBG();
|
|
Dictionary<DLKPBLNKLAD, GameObject> dictionary = DialogsConfig.prefabsByDialogType;
|
|
IPromise<GameObject> promise;
|
|
return promise;
|
|
}
|
|
|
|
// Token: 0x17000A16 RID: 2582
|
|
// (get) Token: 0x060039A1 RID: 14753 RVA: 0x000F2BAC File Offset: 0x000F0DAC
|
|
[Token(Token = "0x17000A16")]
|
|
public IReadOnlyList<DialogsConfig.View> Views
|
|
{
|
|
[Token(Token = "0x60039A1")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060039A1)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<RRUI.Dialogs.DialogsConfig/View> RRUI.Dialogs.DialogsConfig::get_Views()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Dialogs.DialogsConfig/View>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Dialogs.DialogsConfig/View>(DialogsConfig::views, ldloc:DialogsConfig(this)))
|
|
}
|
|
|
|
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: 0x060039A2 RID: 14754 RVA: 0x000F2BC0 File Offset: 0x000F0DC0
|
|
[Token(Token = "0x60039A2")]
|
|
[Address(RVA = "0x1079FA0", Offset = "0x10789A0", VA = "0x181079FA0")]
|
|
public DialogsConfig()
|
|
{
|
|
List<DialogsConfig.View> list = new List();
|
|
this.views = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x060039A3 RID: 14755 RVA: 0x0000220F File Offset: 0x0000040F
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x60039A3")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60")]
|
|
static DialogsConfig()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04003268 RID: 12904
|
|
[Token(Token = "0x4003268")]
|
|
private static DialogsConfig _instance;
|
|
|
|
// Token: 0x04003269 RID: 12905
|
|
[Token(Token = "0x4003269")]
|
|
private static bool isInitialized;
|
|
|
|
// Token: 0x0400326A RID: 12906
|
|
[Token(Token = "0x400326A")]
|
|
private static Dictionary<DLKPBLNKLAD, GameObject> prefabsByDialogType;
|
|
|
|
// Token: 0x0400326B RID: 12907
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400326B")]
|
|
[SerializeField]
|
|
private List<DialogsConfig.View> views;
|
|
|
|
// Token: 0x0200081B RID: 2075
|
|
[Token(Token = "0x200081B")]
|
|
[Serializable]
|
|
public class View
|
|
{
|
|
// Token: 0x17000A17 RID: 2583
|
|
// (get) Token: 0x060039A4 RID: 14756 RVA: 0x000F2BE0 File Offset: 0x000F0DE0
|
|
[Token(Token = "0x17000A17")]
|
|
public string Name
|
|
{
|
|
[Token(Token = "0x60039A4")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000A18 RID: 2584
|
|
// (get) Token: 0x060039A5 RID: 14757 RVA: 0x000F2BF4 File Offset: 0x000F0DF4
|
|
[Token(Token = "0x17000A18")]
|
|
public GameObject Prefab
|
|
{
|
|
[Token(Token = "0x60039A5")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.prefab;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060039A6 RID: 14758 RVA: 0x000F2C08 File Offset: 0x000F0E08
|
|
[Token(Token = "0x60039A6")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public View()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400326C RID: 12908
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400326C")]
|
|
[SerializeField]
|
|
private string name;
|
|
|
|
// Token: 0x0400326D RID: 12909
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400326D")]
|
|
[SerializeField]
|
|
private GameObject prefab;
|
|
}
|
|
}
|
|
}
|