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: 0x020023E3 RID: 9187
|
|
[Token(Token = "0x20023E3")]
|
|
[CreateAssetMenu]
|
|
public sealed class FaceStyleSet : ScriptableObject
|
|
{
|
|
// Token: 0x1700268A RID: 9866
|
|
// (get) Token: 0x0600ECF3 RID: 60659 RVA: 0x00368240 File Offset: 0x00366440
|
|
[Token(Token = "0x1700268A")]
|
|
private bool dictionariesInitialized
|
|
{
|
|
[Token(Token = "0x600ECF3")]
|
|
[Address(RVA = "0x11D7CF0", Offset = "0x11D6AF0", VA = "0x1811D7CF0")]
|
|
get
|
|
{
|
|
while (this.eyeFeatureDictionary == (ulong)0L)
|
|
{
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600ECF4 RID: 60660 RVA: 0x0036825C File Offset: 0x0036645C
|
|
[Token(Token = "0x600ECF4")]
|
|
[Address(RVA = "0x11D79B0", Offset = "0x11D67B0", VA = "0x1811D79B0")]
|
|
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: 0x0600ECF5 RID: 60661 RVA: 0x003682C4 File Offset: 0x003664C4
|
|
[Token(Token = "0x600ECF5")]
|
|
[Address(RVA = "0x11D7B00", Offset = "0x11D6900", VA = "0x1811D7B00")]
|
|
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: 0x0600ECF6 RID: 60662 RVA: 0x00368304 File Offset: 0x00366504
|
|
[Token(Token = "0x600ECF6")]
|
|
[Address(RVA = "0x11D77C0", Offset = "0x11D65C0", VA = "0x1811D77C0")]
|
|
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: 0x0600ECF7 RID: 60663 RVA: 0x0036833C File Offset: 0x0036653C
|
|
[Token(Token = "0x600ECF7")]
|
|
[Address(RVA = "0x11D7BD0", Offset = "0x11D69D0", VA = "0x1811D7BD0")]
|
|
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: 0x0600ECF8 RID: 60664 RVA: 0x0036837C File Offset: 0x0036657C
|
|
[Token(Token = "0x600ECF8")]
|
|
[Address(RVA = "0x169B2D0", Offset = "0x169A0D0", VA = "0x18169B2D0")]
|
|
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: 0x0600ECF9 RID: 60665 RVA: 0x003683C0 File Offset: 0x003665C0
|
|
[Token(Token = "0x600ECF9")]
|
|
[Address(RVA = "0x11D7840", Offset = "0x11D6640", VA = "0x1811D7840")]
|
|
public string JFHJHLBLCDN(FaceFeatureType KAFCOGJFANK)
|
|
{
|
|
if (KAFCOGJFANK == FaceFeatureType.Eye)
|
|
{
|
|
SymmetricalFaceFeature[] eyes = this.Eyes;
|
|
}
|
|
if (KAFCOGJFANK == FaceFeatureType.Mouth)
|
|
{
|
|
FaceFeature faceFeature = this.Mouths[0];
|
|
}
|
|
return "";
|
|
}
|
|
|
|
// Token: 0x0600ECFA RID: 60666 RVA: 0x003683F8 File Offset: 0x003665F8
|
|
[Token(Token = "0x600ECFA")]
|
|
[Address(RVA = "0x11D78E0", Offset = "0x11D66E0", VA = "0x1811D78E0")]
|
|
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: 0x0600ECFB RID: 60667 RVA: 0x0036845C File Offset: 0x0036665C
|
|
[Token(Token = "0x600ECFB")]
|
|
[Address(RVA = "0x11D7C90", Offset = "0x11D6A90", VA = "0x1811D7C90")]
|
|
public FaceStyleSet()
|
|
{
|
|
Dictionary<string, int> dictionary = new Dictionary();
|
|
this.featureToIndexMap = dictionary;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04009C9C RID: 40092
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4009C9C")]
|
|
public SymmetricalFaceFeature[] Eyes;
|
|
|
|
// Token: 0x04009C9D RID: 40093
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4009C9D")]
|
|
public FaceFeature[] Mouths;
|
|
|
|
// Token: 0x04009C9E RID: 40094
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4009C9E")]
|
|
private Dictionary<string, SymmetricalFaceFeature> eyeFeatureDictionary;
|
|
|
|
// Token: 0x04009C9F RID: 40095
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4009C9F")]
|
|
private Dictionary<string, FaceFeature> mouthFeatureDictionary;
|
|
|
|
// Token: 0x04009CA0 RID: 40096
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4009CA0")]
|
|
private Dictionary<string, int> featureToIndexMap;
|
|
}
|
|
}
|