Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

98 lines
4.6 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.Serialization;
namespace RecRoom.Sprites
{
// Token: 0x020023EB RID: 9195
[Token(Token = "0x20023EB")]
public class SpriteLookupConfig : ScriptableObject
{
// Token: 0x1700255B RID: 9563
// (get) Token: 0x0600EA38 RID: 59960 RVA: 0x0035D278 File Offset: 0x0035B478
[Token(Token = "0x1700255B")]
public global::UnityEngine.Object SourceAsset
{
[Token(Token = "0x600EA38")]
[Address(RVA = "0x184EBC0", Offset = "0x184DBC0", VA = "0x18184EBC0")]
get
{
Texture texture = this.legacySourceTexture;
int num = 0;
if (texture != num)
{
Texture texture2 = this.legacySourceTexture;
}
return this.sourceAsset;
}
}
// Token: 0x1700255C RID: 9564
// (get) Token: 0x0600EA39 RID: 59961 RVA: 0x0035D2A8 File Offset: 0x0035B4A8
[Token(Token = "0x1700255C")]
public IReadOnlyList<Sprite> Sprites
{
[Token(Token = "0x600EA39")]
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
get
{
/*
An exception occurred when decompiling this method (0600EA39)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<UnityEngine.Sprite> RecRoom.Sprites.SpriteLookupConfig::get_Sprites()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:class [mscorlib]System.Collections.Generic.List`1<class [UnityEngine.CoreModule]UnityEngine.Sprite>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class [UnityEngine.CoreModule]UnityEngine.Sprite>(SpriteLookupConfig::sprites, ldloc:SpriteLookupConfig(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: 0x0600EA3A RID: 59962 RVA: 0x0035D2BC File Offset: 0x0035B4BC
[Token(Token = "0x600EA3A")]
[Address(RVA = "0x184EB60", Offset = "0x184DB60", VA = "0x18184EB60")]
public SpriteLookupConfig()
{
int num;
List<Sprite> list = new List(num);
num = 0;
this.sprites = list;
base..ctor();
}
// Token: 0x0400984D RID: 38989
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400984D")]
[JDBPLNPJCPC]
[SerializeField]
[FormerlySerializedAs("sourceTexture")]
private Texture legacySourceTexture;
// Token: 0x0400984E RID: 38990
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400984E")]
[JDBPLNPJCPC]
[SerializeField]
private global::UnityEngine.Object sourceAsset;
// Token: 0x0400984F RID: 38991
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400984F")]
[JDBPLNPJCPC]
[SerializeField]
private List<Sprite> sprites;
}
}