Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

127 lines
5.7 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Avatars
{
// Token: 0x02002390 RID: 9104
[Token(Token = "0x2002390")]
public class HairPatternVault : MonoBehaviour
{
// Token: 0x170025E1 RID: 9697
// (get) Token: 0x0600EA1B RID: 59931 RVA: 0x0035DDE0 File Offset: 0x0035BFE0
[Token(Token = "0x170025E1")]
public IReadOnlyList<AvatarHairPattern> CGDBLHIHLLH
{
[Token(Token = "0x600EA1B")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
/*
An exception occurred when decompiling this method (0600EA1B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<RecRoom.Avatars.AvatarHairPattern> RecRoom.Avatars.HairPatternVault::get_Patterns()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:class [mscorlib]System.Collections.Generic.List`1<class RecRoom.Avatars.AvatarHairPattern>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class RecRoom.Avatars.AvatarHairPattern>(HairPatternVault::patterns, ldloc:HairPatternVault(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: 0x0600EA1C RID: 59932 RVA: 0x0035DDF4 File Offset: 0x0035BFF4
[Token(Token = "0x600EA1C")]
[Address(RVA = "0x11D98C0", Offset = "0x11D86C0", VA = "0x1811D98C0", Slot = "4")]
protected virtual void Awake()
{
int num;
do
{
num = 0;
List<AvatarHairPattern> list = this.patterns;
num += num;
num++;
Dictionary<string, AvatarHairPattern> nggngaeekjh = this.NGGNGAEEKJH;
num += 19;
}
while (num != 0);
}
// Token: 0x0600EA1D RID: 59933 RVA: 0x0035DE34 File Offset: 0x0035C034
[Token(Token = "0x600EA1D")]
[Address(RVA = "0x11D9A50", Offset = "0x11D8850", VA = "0x1811D9A50")]
public AvatarHairPattern Find(string AONMDJCKDNH)
{
Dictionary<string, AvatarHairPattern> nggngaeekjh = this.NGGNGAEEKJH;
bool flag;
if (flag)
{
}
throw new NullReferenceException();
}
// Token: 0x0600EA1E RID: 59934 RVA: 0x0035DE54 File Offset: 0x0035C054
[Token(Token = "0x600EA1E")]
[Address(RVA = "0x11D9AE0", Offset = "0x11D88E0", VA = "0x1811D9AE0")]
public AvatarHairPattern GetRandomDefault()
{
if (global::UnityEngine.Random.value <= 0.5f)
{
return ECNNGIFNNNM.NBMJEPIPHGC<AvatarHairPattern>(this.patterns);
}
return this.Default;
}
// Token: 0x0600EA1F RID: 59935 RVA: 0x0035DE84 File Offset: 0x0035C084
[Token(Token = "0x600EA1F")]
[Address(RVA = "0x11D9B40", Offset = "0x11D8940", VA = "0x1811D9B40")]
public AvatarHairPattern GetRandomUnlocked()
{
return ECNNGIFNNNM.NBMJEPIPHGC<AvatarHairPattern>(this.patterns);
}
// Token: 0x0600EA20 RID: 59936 RVA: 0x0035DE9C File Offset: 0x0035C09C
[Token(Token = "0x600EA20")]
[Address(RVA = "0x11D9B80", Offset = "0x11D8980", VA = "0x1811D9B80")]
public HairPatternVault()
{
Dictionary<string, AvatarHairPattern> dictionary = new Dictionary();
this.NGGNGAEEKJH = dictionary;
base..ctor();
}
// Token: 0x04009A64 RID: 39524
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009A64")]
[Tooltip("Used only for decorative purposes.")]
public string Label = "My Vault";
// Token: 0x04009A65 RID: 39525
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4009A65")]
public AvatarHairPattern Default;
// Token: 0x04009A66 RID: 39526
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4009A66")]
[SerializeField]
protected List<AvatarHairPattern> patterns;
// Token: 0x04009A67 RID: 39527
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4009A67")]
private readonly Dictionary<string, AvatarHairPattern> NGGNGAEEKJH;
}
}