Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/HelpPopupConfigs.cs
T
2026-04-08 23:40:05 +02:00

126 lines
6.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using RecRoom.AssetBundles;
using RecRoom.DataStructures.ResourceHandles;
using UnityEngine;
using UnityEngine.AddressableAssets;
// Token: 0x0200048F RID: 1167
[Token(Token = "0x200048F")]
[StructLayout(3)]
public class HelpPopupConfigs : ScriptableObject
{
// Token: 0x06002278 RID: 8824 RVA: 0x0008FB5C File Offset: 0x0008DD5C
[Token(Token = "0x6002278")]
[Address(RVA = "0x18BC6B0", Offset = "0x18BB0B0", VA = "0x1818BC6B0")]
public IResourceHandle<Texture2D> IKEDMJHLJEA(TutorialManager.DDDLEBIENKF NNOIOCMLAFC, [Optional] PlatformManager.LDIIFDDCKCN? LPBLKPHDFPD)
{
HelpPopupConfigs.HelpPopupConfig[] array = this.helpPopupConfigs;
int num = 0;
int length = array.Length;
if (num < length)
{
if (array[num].HelpType != NNOIOCMLAFC)
{
num++;
}
if (LPBLKPHDFPD == 0)
{
PlatformManager.LDIIFDDCKCN gfmhkkkeoge = SingletonMonoBehaviour.Instance.GFMHKKKEOGE;
}
Func<IResourceHandle<Texture2D>> func;
if (HelpPopupConfigs.<>c.<>9__1_0 == 0)
{
func = delegate
{
/*
An exception occurred when decompiling this method (0600227F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling RecRoom.DataStructures.ResourceHandles.IResourceHandle`1<UnityEngine.Texture2D> HelpPopupConfigs/<>c::<GetHelpPopupContent>b__1_0()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:class [RecRoom.Datastructures.Runtime]RecRoom.DataStructures.ResourceHandles.EmptyResourceHandle`1<class [UnityEngine.CoreModule]UnityEngine.Texture2D>(var_0_05, newobj:EmptyResourceHandle`1[exp:class [RecRoom.Datastructures.Runtime]RecRoom.DataStructures.ResourceHandles.EmptyResourceHandle`1<class [UnityEngine.CoreModule]UnityEngine.Texture2D>](EmptyResourceHandle`1::.ctor))
}
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.Transforms.DelegateConstruction.HandleAnonymousMethod(ObjectCreateExpression objectCreateExpression, Expression target, IMethod methodRef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\Transforms\DelegateConstruction.cs:line 237
*/;
};
HelpPopupConfigs.<>c.<>9__1_0 = func;
}
AssetReference assetReference;
bool flag = AGAddressableAssetManager.TryLoadAssetOrElse<Texture2D>(assetReference, func, num);
}
EmptyResourceHandle<Texture2D> emptyResourceHandle = new EmptyResourceHandle();
throw new NullReferenceException();
}
// Token: 0x06002279 RID: 8825 RVA: 0x0008FBDC File Offset: 0x0008DDDC
[Token(Token = "0x6002279")]
[Address(RVA = "0x18BC8C0", Offset = "0x18BB2C0", VA = "0x1818BC8C0")]
public HelpPopupConfigs()
{
HelpPopupConfigs.HelpPopupConfig[] array = new HelpPopupConfigs.HelpPopupConfig[0];
this.helpPopupConfigs = array;
base..ctor();
}
// Token: 0x04001C02 RID: 7170
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001C02")]
[SerializeField]
private HelpPopupConfigs.HelpPopupConfig[] helpPopupConfigs;
// Token: 0x02000490 RID: 1168
[Token(Token = "0x2000490")]
[Serializable]
public class HelpPopupConfig : RestrictedTypeConfig<PlatformManager.LDIIFDDCKCN, AssetReference, HelpPopupConfigs.HardwareSpecificTextureSet, HelpPopupConfigs.HardwareSpecicTexture>
{
// Token: 0x0600227A RID: 8826 RVA: 0x0008FC00 File Offset: 0x0008DE00
[Token(Token = "0x600227A")]
[Address(RVA = "0x18BC670", Offset = "0x18BB070", VA = "0x1818BC670")]
public HelpPopupConfig()
{
}
// Token: 0x04001C03 RID: 7171
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001C03")]
public TutorialManager.DDDLEBIENKF HelpType;
}
// Token: 0x02000491 RID: 1169
[Token(Token = "0x2000491")]
[Serializable]
public class HardwareSpecificTextureSet : SpecificRestrictionConfigSet<PlatformManager.LDIIFDDCKCN, HelpPopupConfigs.HardwareSpecicTexture, AssetReference>
{
// Token: 0x0600227B RID: 8827 RVA: 0x0008FC14 File Offset: 0x0008DE14
[Token(Token = "0x600227B")]
[Address(RVA = "0x18BA900", Offset = "0x18B9300", VA = "0x1818BA900")]
public HardwareSpecificTextureSet()
{
}
}
// Token: 0x02000492 RID: 1170
[Token(Token = "0x2000492")]
[Serializable]
public class HardwareSpecicTexture : SpecificRestrictionConfig<PlatformManager.LDIIFDDCKCN, AssetReference>
{
// Token: 0x0600227C RID: 8828 RVA: 0x0008FC28 File Offset: 0x0008DE28
[Token(Token = "0x600227C")]
[Address(RVA = "0x18BA8C0", Offset = "0x18B92C0", VA = "0x1818BA8C0")]
public HardwareSpecicTexture()
{
}
}
}