m
This commit is contained in:
@@ -0,0 +1,305 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RRUI.Dialogs
|
||||
{
|
||||
// Token: 0x0200085D RID: 2141
|
||||
[Token(Token = "0x200085D")]
|
||||
[CreateAssetMenu]
|
||||
public class DialogsConfig : ScriptableObject
|
||||
{
|
||||
// Token: 0x17000A84 RID: 2692
|
||||
// (get) Token: 0x06003B55 RID: 15189 RVA: 0x000F3BF0 File Offset: 0x000F1DF0
|
||||
[Token(Token = "0x17000A84")]
|
||||
public static DialogsConfig Instance
|
||||
{
|
||||
[Token(Token = "0x6003B55")]
|
||||
[Address(RVA = "0x1E67590", Offset = "0x1E66590", VA = "0x181E67590")]
|
||||
get
|
||||
{
|
||||
DialogsConfig instance = DialogsConfig._instance;
|
||||
int num = 0;
|
||||
if (instance == num)
|
||||
{
|
||||
DialogsConfig._instance = OLJIOKGMCPN.MNKDOANEFLK<DialogsConfig>(0);
|
||||
DialogsConfig instance2 = DialogsConfig._instance;
|
||||
int num2 = 0;
|
||||
if (instance2 == num2)
|
||||
{
|
||||
Debug.LogError("Failed to load Dialogs object");
|
||||
}
|
||||
}
|
||||
return DialogsConfig._instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003B56 RID: 15190 RVA: 0x000F3C3C File Offset: 0x000F1E3C
|
||||
[Token(Token = "0x6003B56")]
|
||||
[Address(RVA = "0x1E66F50", Offset = "0x1E65F50", VA = "0x181E66F50")]
|
||||
private static void OFFLOPLJBBG()
|
||||
{
|
||||
int num = 0;
|
||||
DialogsConfig.prefabsByDialogType = new Dictionary();
|
||||
DialogsConfig instance = DialogsConfig._instance;
|
||||
int num2 = 0;
|
||||
if (instance == num2)
|
||||
{
|
||||
DialogsConfig._instance = OLJIOKGMCPN.MNKDOANEFLK<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;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06003B57 RID: 15191 RVA: 0x000F3CFC File Offset: 0x000F1EFC
|
||||
[Token(Token = "0x6003B57")]
|
||||
[Address(RVA = "0x1E66E40", Offset = "0x1E65E40", VA = "0x181E66E40")]
|
||||
public static PMGCJEPKFOF<GameObject> ODJFJBABAAO(DLKPBLNKLAD OIPDFDMPPEA)
|
||||
{
|
||||
DialogsConfig.OFFLOPLJBBG();
|
||||
Dictionary<DLKPBLNKLAD, GameObject> dictionary = DialogsConfig.prefabsByDialogType;
|
||||
PMGCJEPKFOF<GameObject> pmgcjepkfof;
|
||||
return pmgcjepkfof;
|
||||
}
|
||||
|
||||
// Token: 0x17000A85 RID: 2693
|
||||
// (get) Token: 0x06003B58 RID: 15192 RVA: 0x000F3D20 File Offset: 0x000F1F20
|
||||
[Token(Token = "0x17000A85")]
|
||||
public IReadOnlyList<DialogsConfig.View> Views
|
||||
{
|
||||
[Token(Token = "0x6003B58")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06003B58)
|
||||
|
||||
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: 0x17000A86 RID: 2694
|
||||
// (get) Token: 0x06003B59 RID: 15193 RVA: 0x000F3D34 File Offset: 0x000F1F34
|
||||
[Token(Token = "0x17000A86")]
|
||||
public IReadOnlyDictionary<IECOEANLJCJ, Vector2> Dimensions
|
||||
{
|
||||
[Token(Token = "0x6003B59")]
|
||||
[Address(RVA = "0x1E67420", Offset = "0x1E66420", VA = "0x181E67420")]
|
||||
get
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (this.dimensions != num)
|
||||
{
|
||||
break;
|
||||
}
|
||||
Dictionary<IECOEANLJCJ, Vector2> dictionary = new Dictionary();
|
||||
this.dimensions = dictionary;
|
||||
List<DialogsConfig.Size> list = this.sizes;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
Dictionary<IECOEANLJCJ, Vector2> dictionary2 = this.dimensions;
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
Dictionary<IECOEANLJCJ, Vector2> dictionary3 = this.dimensions;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003B5A RID: 15194 RVA: 0x000F3D84 File Offset: 0x000F1F84
|
||||
[Token(Token = "0x6003B5A")]
|
||||
[Address(RVA = "0x1E673A0", Offset = "0x1E663A0", VA = "0x181E673A0")]
|
||||
public DialogsConfig()
|
||||
{
|
||||
List<DialogsConfig.View> list = new List();
|
||||
this.views = list;
|
||||
List<DialogsConfig.Size> list2 = new List();
|
||||
this.sizes = list2;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x06003B5B RID: 15195 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x6003B5B")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
|
||||
static DialogsConfig()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x040032FC RID: 13052
|
||||
[Token(Token = "0x40032FC")]
|
||||
private static DialogsConfig _instance;
|
||||
|
||||
// Token: 0x040032FD RID: 13053
|
||||
[Token(Token = "0x40032FD")]
|
||||
private static bool isInitialized;
|
||||
|
||||
// Token: 0x040032FE RID: 13054
|
||||
[Token(Token = "0x40032FE")]
|
||||
private static Dictionary<DLKPBLNKLAD, GameObject> prefabsByDialogType;
|
||||
|
||||
// Token: 0x040032FF RID: 13055
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40032FF")]
|
||||
[SerializeField]
|
||||
private List<DialogsConfig.View> views;
|
||||
|
||||
// Token: 0x04003300 RID: 13056
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4003300")]
|
||||
[SerializeField]
|
||||
private List<DialogsConfig.Size> sizes;
|
||||
|
||||
// Token: 0x04003301 RID: 13057
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4003301")]
|
||||
private Dictionary<IECOEANLJCJ, Vector2> dimensions;
|
||||
|
||||
// Token: 0x0200085E RID: 2142
|
||||
[Token(Token = "0x200085E")]
|
||||
[Serializable]
|
||||
public class View
|
||||
{
|
||||
// Token: 0x17000A87 RID: 2695
|
||||
// (get) Token: 0x06003B5C RID: 15196 RVA: 0x000F3DB4 File Offset: 0x000F1FB4
|
||||
[Token(Token = "0x17000A87")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x6003B5C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000A88 RID: 2696
|
||||
// (get) Token: 0x06003B5D RID: 15197 RVA: 0x000F3DC8 File Offset: 0x000F1FC8
|
||||
[Token(Token = "0x17000A88")]
|
||||
public GameObject Prefab
|
||||
{
|
||||
[Token(Token = "0x6003B5D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.prefab;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003B5E RID: 15198 RVA: 0x000F3DDC File Offset: 0x000F1FDC
|
||||
[Token(Token = "0x6003B5E")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public View()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04003302 RID: 13058
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003302")]
|
||||
[SerializeField]
|
||||
private string name;
|
||||
|
||||
// Token: 0x04003303 RID: 13059
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003303")]
|
||||
[SerializeField]
|
||||
private GameObject prefab;
|
||||
}
|
||||
|
||||
// Token: 0x0200085F RID: 2143
|
||||
[Token(Token = "0x200085F")]
|
||||
[Serializable]
|
||||
public class Size
|
||||
{
|
||||
// Token: 0x17000A89 RID: 2697
|
||||
// (get) Token: 0x06003B5F RID: 15199 RVA: 0x000F3DF0 File Offset: 0x000F1FF0
|
||||
[Token(Token = "0x17000A89")]
|
||||
public IECOEANLJCJ DialogSize
|
||||
{
|
||||
[Token(Token = "0x6003B5F")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
get
|
||||
{
|
||||
return this.dialogSize;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000A8A RID: 2698
|
||||
// (get) Token: 0x06003B60 RID: 15200 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17000A8A")]
|
||||
public Vector2 Dimensions
|
||||
{
|
||||
[Token(Token = "0x6003B60")]
|
||||
[Address(RVA = "0x1E765A0", Offset = "0x1E755A0", VA = "0x181E765A0")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003B61 RID: 15201 RVA: 0x000F3E04 File Offset: 0x000F2004
|
||||
[Token(Token = "0x6003B61")]
|
||||
[Address(RVA = "0x1E76520", Offset = "0x1E75520", VA = "0x181E76520")]
|
||||
public Size()
|
||||
{
|
||||
Vector2 zero = Vector2.zero;
|
||||
this.dimensions = zero;
|
||||
this.dimensions.y = (float)0;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04003304 RID: 13060
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003304")]
|
||||
[SerializeField]
|
||||
private IECOEANLJCJ dialogSize;
|
||||
|
||||
// Token: 0x04003305 RID: 13061
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4003305")]
|
||||
[SerializeField]
|
||||
private Vector2 dimensions;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user