181 lines
5.7 KiB
C#
181 lines
5.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Avatars.Face
|
|
{
|
|
// Token: 0x020024C7 RID: 9415
|
|
[Token(Token = "0x20024C7")]
|
|
[CreateAssetMenu]
|
|
public sealed class FaceStyleSet : ScriptableObject
|
|
{
|
|
// Token: 0x1700272F RID: 10031
|
|
// (get) Token: 0x0600F109 RID: 61705 RVA: 0x00371844 File Offset: 0x0036FA44
|
|
[Token(Token = "0x1700272F")]
|
|
private bool dictionariesInitialized
|
|
{
|
|
[Token(Token = "0x600F109")]
|
|
[Address(RVA = "0x1D0CE30", Offset = "0x1D0BE30", VA = "0x181D0CE30")]
|
|
get
|
|
{
|
|
while (this.eyeFeatureDictionary == (ulong)0L)
|
|
{
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F10A RID: 61706 RVA: 0x00371860 File Offset: 0x0036FA60
|
|
[Token(Token = "0x600F10A")]
|
|
[Address(RVA = "0x1D0CAF0", Offset = "0x1D0BAF0", VA = "0x181D0CAF0")]
|
|
public HCNCCFIIMLJ MFBDEFCEDGN(int OLGPCPAHNDA, int ABLIGCOBGHL)
|
|
{
|
|
SymmetricalFaceFeature[] eyes = this.Eyes;
|
|
Debug.LogWarning("Eye selection out of range, setting to default");
|
|
int num = 0;
|
|
FaceFeature[] mouths = this.Mouths;
|
|
Debug.LogWarning("Mouth selection out of range, setting to default");
|
|
int num2 = 0;
|
|
SymmetricalFaceFeature[] eyes2 = this.Eyes;
|
|
FaceFeature[] mouths2 = this.Mouths;
|
|
SymmetricalFaceFeature symmetricalFaceFeature = eyes2[num];
|
|
FaceFeature faceFeature = mouths2[num2];
|
|
return new HCNCCFIIMLJ(symmetricalFaceFeature, faceFeature);
|
|
}
|
|
|
|
// Token: 0x0600F10B RID: 61707 RVA: 0x003718C8 File Offset: 0x0036FAC8
|
|
[Token(Token = "0x600F10B")]
|
|
[Address(RVA = "0x1D0CC40", Offset = "0x1D0BC40", VA = "0x181D0CC40")]
|
|
public FaceFeatureBase NFCLIMCPGIN(FaceFeatureType KAFCOGJFANK, string COFLAJFOPEN)
|
|
{
|
|
int num = 0;
|
|
if (this.eyeFeatureDictionary == num && this.mouthFeatureDictionary <= num)
|
|
{
|
|
this.OEGCJOEKMAG();
|
|
}
|
|
if (KAFCOGJFANK == FaceFeatureType.Eye)
|
|
{
|
|
bool flag = this.eyeFeatureDictionary.TryGetValue(COFLAJFOPEN, num);
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600F10C RID: 61708 RVA: 0x00371908 File Offset: 0x0036FB08
|
|
[Token(Token = "0x600F10C")]
|
|
[Address(RVA = "0x1D0C900", Offset = "0x1D0B900", VA = "0x181D0C900")]
|
|
public int GGKOCAMLHNF(string COFLAJFOPEN)
|
|
{
|
|
if (this.eyeFeatureDictionary == (ulong)0L && this.mouthFeatureDictionary <= (ulong)0L)
|
|
{
|
|
this.OEGCJOEKMAG();
|
|
}
|
|
Dictionary<string, int> dictionary = this.featureToIndexMap;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600F10D RID: 61709 RVA: 0x00371940 File Offset: 0x0036FB40
|
|
[Token(Token = "0x600F10D")]
|
|
[Address(RVA = "0x1D0CD10", Offset = "0x1D0BD10", VA = "0x181D0CD10")]
|
|
private void OEGCJOEKMAG()
|
|
{
|
|
if (this.eyeFeatureDictionary == (ulong)0L && this.mouthFeatureDictionary <= (ulong)0L)
|
|
{
|
|
Dictionary<string, SymmetricalFaceFeature> dictionary = new Dictionary();
|
|
this.eyeFeatureDictionary = dictionary;
|
|
Dictionary<string, FaceFeature> dictionary2 = new Dictionary();
|
|
this.mouthFeatureDictionary = dictionary2;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F10E RID: 61710 RVA: 0x00371980 File Offset: 0x0036FB80
|
|
[Token(Token = "0x600F10E")]
|
|
[Address(RVA = "0x2176D40", Offset = "0x2175D40", VA = "0x182176D40")]
|
|
private void OIFINHKAJGI<T>(Dictionary<string, T> IOHBEHECBGL, T[] JNEKGKBHBCN) where T : FaceFeatureBase
|
|
{
|
|
if (IOHBEHECBGL != 0 && JNEKGKBHBCN != 0 && JNEKGKBHBCN.Length != 0)
|
|
{
|
|
int num = 0;
|
|
int length = JNEKGKBHBCN.Length;
|
|
if (num < length)
|
|
{
|
|
T t = JNEKGKBHBCN[num];
|
|
Dictionary<string, int> dictionary = this.featureToIndexMap;
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F10F RID: 61711 RVA: 0x003719C4 File Offset: 0x0036FBC4
|
|
[Token(Token = "0x600F10F")]
|
|
[Address(RVA = "0x1D0C980", Offset = "0x1D0B980", VA = "0x181D0C980")]
|
|
public string JFHJHLBLCDN(FaceFeatureType KAFCOGJFANK)
|
|
{
|
|
if (KAFCOGJFANK == FaceFeatureType.Eye)
|
|
{
|
|
SymmetricalFaceFeature[] eyes = this.Eyes;
|
|
}
|
|
if (KAFCOGJFANK == FaceFeatureType.Mouth)
|
|
{
|
|
FaceFeature faceFeature = this.Mouths[0];
|
|
}
|
|
return "";
|
|
}
|
|
|
|
// Token: 0x0600F110 RID: 61712 RVA: 0x003719FC File Offset: 0x0036FBFC
|
|
[Token(Token = "0x600F110")]
|
|
[Address(RVA = "0x1D0CA20", Offset = "0x1D0BA20", VA = "0x181D0CA20")]
|
|
public string LLBPBGHLKJC(FaceFeatureType KAFCOGJFANK)
|
|
{
|
|
if (KAFCOGJFANK == FaceFeatureType.Eye)
|
|
{
|
|
int length = this.Eyes.Length;
|
|
int num = global::UnityEngine.Random.Range(0, length);
|
|
SymmetricalFaceFeature[] eyes = this.Eyes;
|
|
}
|
|
if (KAFCOGJFANK == FaceFeatureType.Mouth)
|
|
{
|
|
int length2 = this.Mouths.Length;
|
|
int num2 = global::UnityEngine.Random.Range(0, length2);
|
|
FaceFeature faceFeature = this.Mouths[num2];
|
|
}
|
|
return "";
|
|
}
|
|
|
|
// Token: 0x0600F111 RID: 61713 RVA: 0x00371A60 File Offset: 0x0036FC60
|
|
[Token(Token = "0x600F111")]
|
|
[Address(RVA = "0x1D0CDD0", Offset = "0x1D0BDD0", VA = "0x181D0CDD0")]
|
|
public FaceStyleSet()
|
|
{
|
|
Dictionary<string, int> dictionary = new Dictionary();
|
|
this.featureToIndexMap = dictionary;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04009E8E RID: 40590
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4009E8E")]
|
|
public SymmetricalFaceFeature[] Eyes;
|
|
|
|
// Token: 0x04009E8F RID: 40591
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4009E8F")]
|
|
public FaceFeature[] Mouths;
|
|
|
|
// Token: 0x04009E90 RID: 40592
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4009E90")]
|
|
private Dictionary<string, SymmetricalFaceFeature> eyeFeatureDictionary;
|
|
|
|
// Token: 0x04009E91 RID: 40593
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4009E91")]
|
|
private Dictionary<string, FaceFeature> mouthFeatureDictionary;
|
|
|
|
// Token: 0x04009E92 RID: 40594
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4009E92")]
|
|
private Dictionary<string, int> featureToIndexMap;
|
|
}
|
|
}
|