320 lines
12 KiB
C#
320 lines
12 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.DataStructures;
|
|
using UnityEngine;
|
|
using UnityEngine.AddressableAssets;
|
|
|
|
namespace RRUI.Navigation
|
|
{
|
|
// Token: 0x0200083E RID: 2110
|
|
[Token(Token = "0x200083E")]
|
|
[CreateAssetMenu]
|
|
public class RoutesConfig : ScriptableObject
|
|
{
|
|
// Token: 0x17000A57 RID: 2647
|
|
// (get) Token: 0x06003A5D RID: 14941 RVA: 0x000F1980 File Offset: 0x000EFB80
|
|
[Token(Token = "0x17000A57")]
|
|
private static bool _isInitialized
|
|
{
|
|
[Token(Token = "0x6003A5D")]
|
|
[Address(RVA = "0x13B0720", Offset = "0x13AF520", VA = "0x1813B0720")]
|
|
get
|
|
{
|
|
List<RoutesConfig> configs = RoutesConfig._configs;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000A58 RID: 2648
|
|
// (get) Token: 0x06003A5E RID: 14942 RVA: 0x000F199C File Offset: 0x000EFB9C
|
|
[Token(Token = "0x17000A58")]
|
|
public static IReadOnlyList<RoutesConfig> Configs
|
|
{
|
|
[Token(Token = "0x6003A5E")]
|
|
[Address(RVA = "0x13B0670", Offset = "0x13AF470", VA = "0x1813B0670")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06003A5E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<RRUI.Navigation.RoutesConfig> RRUI.Navigation.RoutesConfig::get_Configs()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_11:
|
|
stloc:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Navigation.RoutesConfig>(var_2_16, ldsfld:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Navigation.RoutesConfig>(RoutesConfig::_configs))
|
|
}
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000A59 RID: 2649
|
|
// (get) Token: 0x06003A5F RID: 14943 RVA: 0x000F19C0 File Offset: 0x000EFBC0
|
|
[Token(Token = "0x17000A59")]
|
|
public IReadOnlyList<RoutesConfig.View> Views
|
|
{
|
|
[Token(Token = "0x6003A5F")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06003A5F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<RRUI.Navigation.RoutesConfig/View> RRUI.Navigation.RoutesConfig::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.Navigation.RoutesConfig/View>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Navigation.RoutesConfig/View>(RoutesConfig::views, ldloc:RoutesConfig(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 1660
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003A60 RID: 14944 RVA: 0x000F19D4 File Offset: 0x000EFBD4
|
|
[Token(Token = "0x6003A60")]
|
|
[Address(RVA = "0x13B00B0", Offset = "0x13AEEB0", VA = "0x1813B00B0")]
|
|
private static void OFFLOPLJBBG()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
RoutesConfig._configs = Enumerable.ToList<RoutesConfig>(Resources.LoadAll<RoutesConfig>(RoutesConfig.ResourcesRoutesDirectoryPath));
|
|
RoutesConfig._prefabReferences = new Dictionary();
|
|
List<RoutesConfig> configs = RoutesConfig._configs;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
if (flag)
|
|
{
|
|
Dictionary<Guid, AssetReference> prefabReferences = RoutesConfig._prefabReferences;
|
|
}
|
|
if (flag)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_61;
|
|
}
|
|
while ((ulong)((uint)(-1)) == (ulong)(-1L))
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_61:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06003A61 RID: 14945 RVA: 0x000F1A50 File Offset: 0x000EFC50
|
|
[Token(Token = "0x6003A61")]
|
|
[Address(RVA = "0x13AFD70", Offset = "0x13AEB70", VA = "0x1813AFD70")]
|
|
public static bool HOMDCONMIBP(Route GJIOCANDGPE, out RoutesConfig JOJDKKOGJID, out RoutesConfig.View MAKNOCJAGOK)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
if (!RoutesConfig._isInitialized)
|
|
{
|
|
RoutesConfig.OFFLOPLJBBG();
|
|
}
|
|
List<RoutesConfig> configs = RoutesConfig._configs;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
bool flag2;
|
|
if (flag2)
|
|
{
|
|
SerializedGuid viewGuid = GJIOCANDGPE.viewGuid;
|
|
bool flag3;
|
|
while (!flag3)
|
|
{
|
|
}
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_77;
|
|
}
|
|
while (1UL == (ulong)(-1L))
|
|
{
|
|
}
|
|
if (typeof(RoutesConfig).TypeHandle == (ulong)143L)
|
|
{
|
|
}
|
|
while (typeof(RoutesConfig).TypeHandle != (ulong)110L)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (1UL != (ulong)(-1L))
|
|
{
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
IL_77:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06003A62 RID: 14946 RVA: 0x000F1AE0 File Offset: 0x000EFCE0
|
|
[Token(Token = "0x6003A62")]
|
|
[Address(RVA = "0x13B03F0", Offset = "0x13AF1F0", VA = "0x1813B03F0")]
|
|
public static AssetReference POPMDGAJDCA(Route GJIOCANDGPE)
|
|
{
|
|
if (!RoutesConfig._isInitialized)
|
|
{
|
|
RoutesConfig.OFFLOPLJBBG();
|
|
}
|
|
Dictionary<Guid, AssetReference> prefabReferences = RoutesConfig._prefabReferences;
|
|
Guid value = GJIOCANDGPE.viewGuid.Value;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
Debug.LogError(string.Format("Unable to find {0} for {1}: {2}", "AssetReference", "Route", GJIOCANDGPE));
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06003A63 RID: 14947 RVA: 0x000F1B38 File Offset: 0x000EFD38
|
|
[Token(Token = "0x6003A63")]
|
|
[Address(RVA = "0x13B0610", Offset = "0x13AF410", VA = "0x1813B0610")]
|
|
public RoutesConfig()
|
|
{
|
|
List<RoutesConfig.View> list = new List();
|
|
this.views = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x06003A64 RID: 14948 RVA: 0x000F1B58 File Offset: 0x000EFD58
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x6003A64")]
|
|
[Address(RVA = "0x13B0570", Offset = "0x13AF370", VA = "0x1813B0570")]
|
|
static RoutesConfig()
|
|
{
|
|
string resourcesRoutesDirectoryPath = RoutesConfig.ResourcesRoutesDirectoryPath;
|
|
RoutesConfig.FullRoutesDirectoryPath = "Assets/RRUI/Resources/" + resourcesRoutesDirectoryPath;
|
|
int num = 0;
|
|
RoutesConfig._configs = num;
|
|
RoutesConfig._prefabReferences = num;
|
|
}
|
|
|
|
// Token: 0x04003233 RID: 12851
|
|
[Token(Token = "0x4003233")]
|
|
public static readonly string ResourcesRoutesDirectoryPath = "Routes/";
|
|
|
|
// Token: 0x04003234 RID: 12852
|
|
[Token(Token = "0x4003234")]
|
|
public static readonly string FullRoutesDirectoryPath;
|
|
|
|
// Token: 0x04003235 RID: 12853
|
|
[Token(Token = "0x4003235")]
|
|
private static List<RoutesConfig> _configs;
|
|
|
|
// Token: 0x04003236 RID: 12854
|
|
[Token(Token = "0x4003236")]
|
|
private static Dictionary<Guid, AssetReference> _prefabReferences;
|
|
|
|
// Token: 0x04003237 RID: 12855
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003237")]
|
|
[SerializeField]
|
|
private List<RoutesConfig.View> views;
|
|
|
|
// Token: 0x0200083F RID: 2111
|
|
[Token(Token = "0x200083F")]
|
|
[Serializable]
|
|
public class View
|
|
{
|
|
// Token: 0x17000A5A RID: 2650
|
|
// (get) Token: 0x06003A65 RID: 14949 RVA: 0x000F1B94 File Offset: 0x000EFD94
|
|
[Token(Token = "0x17000A5A")]
|
|
public SerializedGuid Guid
|
|
{
|
|
[Token(Token = "0x6003A65")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.guid;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000A5B RID: 2651
|
|
// (get) Token: 0x06003A66 RID: 14950 RVA: 0x000F1BA8 File Offset: 0x000EFDA8
|
|
[Token(Token = "0x17000A5B")]
|
|
public string FriendlyName
|
|
{
|
|
[Token(Token = "0x6003A66")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.friendlyName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000A5C RID: 2652
|
|
// (get) Token: 0x06003A67 RID: 14951 RVA: 0x000F1BBC File Offset: 0x000EFDBC
|
|
[Token(Token = "0x17000A5C")]
|
|
public AssetReference PrefabReference
|
|
{
|
|
[Token(Token = "0x6003A67")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.prefabReference;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003A68 RID: 14952 RVA: 0x000F1BD0 File Offset: 0x000EFDD0
|
|
[Token(Token = "0x6003A68")]
|
|
[Address(RVA = "0x13B3AA0", Offset = "0x13B28A0", VA = "0x1813B3AA0")]
|
|
public View()
|
|
{
|
|
Guid guid = global::System.Guid.NewGuid();
|
|
SerializedGuid serializedGuid;
|
|
this.guid = serializedGuid;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04003238 RID: 12856
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4003238")]
|
|
[SerializeField]
|
|
private SerializedGuid guid;
|
|
|
|
// Token: 0x04003239 RID: 12857
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003239")]
|
|
[SerializeField]
|
|
private string friendlyName;
|
|
|
|
// Token: 0x0400323A RID: 12858
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400323A")]
|
|
[SerializeField]
|
|
private AssetReference prefabReference;
|
|
}
|
|
}
|
|
}
|