91 lines
4.4 KiB
C#
91 lines
4.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using RRUI.Navigation;
|
|
using UnityEngine;
|
|
|
|
namespace RRUI
|
|
{
|
|
// Token: 0x020007AC RID: 1964
|
|
[Token(Token = "0x20007AC")]
|
|
[CreateAssetMenu]
|
|
public class SidebarConfig : ScriptableObject
|
|
{
|
|
// Token: 0x1700098D RID: 2445
|
|
// (get) Token: 0x060037CB RID: 14283 RVA: 0x000E7F74 File Offset: 0x000E6174
|
|
[Token(Token = "0x1700098D")]
|
|
public static SidebarConfig Instance
|
|
{
|
|
[Token(Token = "0x60037CB")]
|
|
[Address(RVA = "0x159F4C0", Offset = "0x159E4C0", VA = "0x18159F4C0")]
|
|
get
|
|
{
|
|
SidebarConfig instance = SidebarConfig._instance;
|
|
int num = 0;
|
|
if (!(instance != num))
|
|
{
|
|
SidebarConfig._instance = OLJIOKGMCPN.MNKDOANEFLK<SidebarConfig>(0);
|
|
SidebarConfig instance2 = SidebarConfig._instance;
|
|
int num2 = 0;
|
|
if (instance2 == num2)
|
|
{
|
|
Debug.LogError("Failed to load SidebarConfig object");
|
|
}
|
|
}
|
|
return SidebarConfig._instance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700098E RID: 2446
|
|
// (get) Token: 0x060037CC RID: 14284 RVA: 0x000E7FC0 File Offset: 0x000E61C0
|
|
[Token(Token = "0x1700098E")]
|
|
public IReadOnlyList<Route> HiddenRoutes
|
|
{
|
|
[Token(Token = "0x60037CC")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060037CC)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<RRUI.Navigation.Route> RRUI.SidebarConfig::get_HiddenRoutes()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Navigation.Route>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Navigation.Route>(SidebarConfig::_hiddenRoutes, ldloc:SidebarConfig(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: 0x060037CD RID: 14285 RVA: 0x000E7FD4 File Offset: 0x000E61D4
|
|
[Token(Token = "0x60037CD")]
|
|
[Address(RVA = "0x159F460", Offset = "0x159E460", VA = "0x18159F460")]
|
|
public SidebarConfig()
|
|
{
|
|
List<Route> list = new List();
|
|
this._hiddenRoutes = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04002FD6 RID: 12246
|
|
[Token(Token = "0x4002FD6")]
|
|
private static SidebarConfig _instance;
|
|
|
|
// Token: 0x04002FD7 RID: 12247
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002FD7")]
|
|
[SerializeField]
|
|
private List<Route> _hiddenRoutes;
|
|
}
|
|
}
|