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.Toasts
|
|
{
|
|
// Token: 0x020007D6 RID: 2006
|
|
[Token(Token = "0x20007D6")]
|
|
[CreateAssetMenu]
|
|
[StructLayout(3)]
|
|
public class ToastsConfig : ScriptableObject
|
|
{
|
|
// Token: 0x170009B1 RID: 2481
|
|
// (get) Token: 0x06003892 RID: 14482 RVA: 0x000EFA74 File Offset: 0x000EDC74
|
|
[Token(Token = "0x170009B1")]
|
|
public static ToastsConfig Instance
|
|
{
|
|
[Token(Token = "0x6003892")]
|
|
[Address(RVA = "0x1090430", Offset = "0x108EE30", VA = "0x181090430")]
|
|
get
|
|
{
|
|
ToastsConfig instance = ToastsConfig._instance;
|
|
int num = 0;
|
|
if (instance == num)
|
|
{
|
|
ToastsConfig._instance = OIOLECLLCPM.GDJBDCKGDLE<ToastsConfig>(0);
|
|
ToastsConfig instance2 = ToastsConfig._instance;
|
|
int num2 = 0;
|
|
if (instance2 == num2)
|
|
{
|
|
Debug.LogError("Failed to load Toasts object");
|
|
}
|
|
}
|
|
return ToastsConfig._instance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003893 RID: 14483 RVA: 0x000EFAC0 File Offset: 0x000EDCC0
|
|
[Token(Token = "0x6003893")]
|
|
[Address(RVA = "0x108FF40", Offset = "0x108E940", VA = "0x18108FF40")]
|
|
private static void OFFLOPLJBBG()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
ToastsConfig.prefabsByToastType = new Dictionary();
|
|
ToastsConfig instance = ToastsConfig._instance;
|
|
int num2 = 0;
|
|
if (instance == num2)
|
|
{
|
|
ToastsConfig._instance = OIOLECLLCPM.GDJBDCKGDLE<ToastsConfig>(0);
|
|
ToastsConfig instance2 = ToastsConfig._instance;
|
|
int num3 = 0;
|
|
if (instance2 == num3)
|
|
{
|
|
Debug.LogError("Failed to load Toasts object");
|
|
}
|
|
}
|
|
List<ToastsConfig.View> list = ToastsConfig._instance.views;
|
|
ToastsConfig instance3 = ToastsConfig._instance;
|
|
num += num;
|
|
num++;
|
|
Dictionary<BIHOKCDKFPC, GameObject> dictionary = ToastsConfig.prefabsByToastType;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
int num4 = 0;
|
|
string text;
|
|
Debug.LogError(text);
|
|
num4 += num4;
|
|
text += instance3;
|
|
}
|
|
Dictionary<BIHOKCDKFPC, GameObject> dictionary2 = ToastsConfig.prefabsByToastType;
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x06003894 RID: 14484 RVA: 0x000EFB80 File Offset: 0x000EDD80
|
|
[Token(Token = "0x6003894")]
|
|
[Address(RVA = "0x108FE30", Offset = "0x108E830", VA = "0x18108FE30")]
|
|
public static IPromise<GameObject> ODJFJBABAAO(BIHOKCDKFPC KPOFFAKOGAI)
|
|
{
|
|
ToastsConfig.OFFLOPLJBBG();
|
|
Dictionary<BIHOKCDKFPC, GameObject> dictionary = ToastsConfig.prefabsByToastType;
|
|
IPromise<GameObject> promise;
|
|
return promise;
|
|
}
|
|
|
|
// Token: 0x170009B2 RID: 2482
|
|
// (get) Token: 0x06003895 RID: 14485 RVA: 0x000EFBA4 File Offset: 0x000EDDA4
|
|
[Token(Token = "0x170009B2")]
|
|
public IReadOnlyList<ToastsConfig.View> Views
|
|
{
|
|
[Token(Token = "0x6003895")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06003895)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<RRUI.Toasts.ToastsConfig/View> RRUI.Toasts.ToastsConfig::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.Toasts.ToastsConfig/View>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Toasts.ToastsConfig/View>(ToastsConfig::views, ldloc:ToastsConfig(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: 0x06003896 RID: 14486 RVA: 0x000EFBB8 File Offset: 0x000EDDB8
|
|
[Token(Token = "0x6003896")]
|
|
[Address(RVA = "0x10903D0", Offset = "0x108EDD0", VA = "0x1810903D0")]
|
|
public ToastsConfig()
|
|
{
|
|
List<ToastsConfig.View> list = new List();
|
|
this.views = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x06003897 RID: 14487 RVA: 0x0000220F File Offset: 0x0000040F
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x6003897")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60")]
|
|
static ToastsConfig()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04003176 RID: 12662
|
|
[Token(Token = "0x4003176")]
|
|
private static ToastsConfig _instance;
|
|
|
|
// Token: 0x04003177 RID: 12663
|
|
[Token(Token = "0x4003177")]
|
|
private static bool isInitialized;
|
|
|
|
// Token: 0x04003178 RID: 12664
|
|
[Token(Token = "0x4003178")]
|
|
private static Dictionary<BIHOKCDKFPC, GameObject> prefabsByToastType;
|
|
|
|
// Token: 0x04003179 RID: 12665
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003179")]
|
|
[SerializeField]
|
|
private List<ToastsConfig.View> views;
|
|
|
|
// Token: 0x020007D7 RID: 2007
|
|
[Token(Token = "0x20007D7")]
|
|
[Serializable]
|
|
public class View
|
|
{
|
|
// Token: 0x170009B3 RID: 2483
|
|
// (get) Token: 0x06003898 RID: 14488 RVA: 0x000EFBD8 File Offset: 0x000EDDD8
|
|
[Token(Token = "0x170009B3")]
|
|
public string Name
|
|
{
|
|
[Token(Token = "0x6003898")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170009B4 RID: 2484
|
|
// (get) Token: 0x06003899 RID: 14489 RVA: 0x000EFBEC File Offset: 0x000EDDEC
|
|
[Token(Token = "0x170009B4")]
|
|
public GameObject Prefab
|
|
{
|
|
[Token(Token = "0x6003899")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.prefab;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600389A RID: 14490 RVA: 0x000EFC00 File Offset: 0x000EDE00
|
|
[Token(Token = "0x600389A")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public View()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400317A RID: 12666
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400317A")]
|
|
[SerializeField]
|
|
private string name;
|
|
|
|
// Token: 0x0400317B RID: 12667
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400317B")]
|
|
[SerializeField]
|
|
private GameObject prefab;
|
|
}
|
|
}
|
|
}
|