253 lines
8.8 KiB
C#
253 lines
8.8 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Avatars.Poseable;
|
|
using RecRoom.Core.Imposters;
|
|
using UnityEngine;
|
|
using UnityEngine.Experimental.Rendering;
|
|
|
|
// Token: 0x0200249A RID: 9370
|
|
[Token(Token = "0x200249A")]
|
|
public static class ENBLCMELCHA
|
|
{
|
|
// Token: 0x0600EFA0 RID: 61344 RVA: 0x0036CA00 File Offset: 0x0036AC00
|
|
[Token(Token = "0x600EFA0")]
|
|
[Address(RVA = "0x1FDFDB0", Offset = "0x1FDEDB0", VA = "0x181FDFDB0")]
|
|
public static RenderTexture GOGOEPEJEOB()
|
|
{
|
|
int imageResolution = ENBLCMELCHA.PBGBNMCPEAJ.ImageResolution;
|
|
int num;
|
|
RenderTexture renderTexture = new RenderTexture(imageResolution, imageResolution, 24, (RenderTextureFormat)num);
|
|
num = 0;
|
|
renderTexture.name = "[PoseableAvatarImage]RenderTexture";
|
|
Graphics.Blit(Texture2D.blackTexture, renderTexture);
|
|
return renderTexture;
|
|
}
|
|
|
|
// Token: 0x0600EFA1 RID: 61345 RVA: 0x0036CA44 File Offset: 0x0036AC44
|
|
[Token(Token = "0x600EFA1")]
|
|
[Address(RVA = "0x1FDFED0", Offset = "0x1FDEED0", VA = "0x181FDFED0")]
|
|
public static DABKFAIHBBP IHIAJEDJADM(MNHEFLIMKGO KJAFOCJMDIH, RenderTexture LDEKHANDCBO)
|
|
{
|
|
PoseableAvatarAsset[] poses = ENBLCMELCHA.PBGBNMCPEAJ.Poses;
|
|
global::System.Random pnldcpgaopc = ENBLCMELCHA.PNLDCPGAOPC;
|
|
int length = poses.Length;
|
|
int num;
|
|
PoseableAvatarAsset poseableAvatarAsset = ENBLCMELCHA.PBGBNMCPEAJ.Poses[num];
|
|
return ENBLCMELCHA.MEKBLKFCOKE(KJAFOCJMDIH, poseableAvatarAsset, LDEKHANDCBO);
|
|
}
|
|
|
|
// Token: 0x0600EFA2 RID: 61346 RVA: 0x0036CA90 File Offset: 0x0036AC90
|
|
[Token(Token = "0x600EFA2")]
|
|
[Address(RVA = "0x1FDFFC0", Offset = "0x1FDEFC0", VA = "0x181FDFFC0")]
|
|
public static DABKFAIHBBP MEKBLKFCOKE(MNHEFLIMKGO KJAFOCJMDIH, PoseableAvatarAsset BEKEOBJFIAC, RenderTexture LDEKHANDCBO)
|
|
{
|
|
ENBLCMELCHA.EOGMOECOOGG eogmoecoogg = new ENBLCMELCHA.EOGMOECOOGG();
|
|
eogmoecoogg.renderTexture = LDEKHANDCBO;
|
|
eogmoecoogg.asset = BEKEOBJFIAC;
|
|
int num = 0;
|
|
bool flag = LDEKHANDCBO == num;
|
|
if (!flag && flag)
|
|
{
|
|
int graphicsFormat = (int)eogmoecoogg.renderTexture.graphicsFormat;
|
|
PoseableAvatarConfig pbgbnmcpeaj = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
if (graphicsFormat == pbgbnmcpeaj.ImageResolution)
|
|
{
|
|
RenderTexture renderTexture = eogmoecoogg.renderTexture;
|
|
PoseableAvatarConfig pbgbnmcpeaj2 = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
if (eogmoecoogg.renderTexture.format == RenderTextureFormat.ARGB32 && eogmoecoogg.renderTexture.depth == 24)
|
|
{
|
|
PoseableAvatarPuppet poseableAvatarPuppet = global::UnityEngine.Object.Instantiate<PoseableAvatarPuppet>(ENBLCMELCHA.PBGBNMCPEAJ.PuppetPrefab);
|
|
eogmoecoogg.puppetInstance = poseableAvatarPuppet;
|
|
poseableAvatarPuppet.gameObject.NHCPFEKJPIA(DAJFOCGPHGP.Water);
|
|
PoseableAvatarPuppet puppetInstance = eogmoecoogg.puppetInstance;
|
|
PoseableAvatarAsset asset = eogmoecoogg.asset;
|
|
DABKFAIHBBP dabkfaihbbp = puppetInstance.InitializeAsync(KJAFOCJMDIH, asset);
|
|
Func<DABKFAIHBBP> func = delegate
|
|
{
|
|
GameObject gameObject = eogmoecoogg.puppetInstance.gameObject;
|
|
RenderTexture renderTexture2 = eogmoecoogg.renderTexture;
|
|
ImposterRenderConfig renderConfiguration = eogmoecoogg.asset.RenderConfiguration;
|
|
if (renderConfiguration == 0)
|
|
{
|
|
PoseableAvatarConfig pbgbnmcpeaj3 = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
}
|
|
JODFIHBJHJM.LHIJJOKKALC(gameObject, renderTexture2, renderConfiguration);
|
|
DABKFAIHBBP <EIDHKJMHBEC>k__BackingField = JJEKJGALHKO.<EIDHKJMHBEC>k__BackingField;
|
|
DABKFAIHBBP dabkfaihbbp2;
|
|
return dabkfaihbbp2;
|
|
};
|
|
int num2 = 0;
|
|
num2 += num2;
|
|
num2++;
|
|
Action action = delegate
|
|
{
|
|
global::UnityEngine.Object.Destroy(eogmoecoogg.puppetInstance.gameObject);
|
|
};
|
|
if (num2 < eogmoecoogg)
|
|
{
|
|
num2 += num2;
|
|
num2++;
|
|
}
|
|
action += action;
|
|
num2 += num2;
|
|
}
|
|
}
|
|
return JJEKJGALHKO.LIPGKFECLDO("Texture does not meet the expected requirements. Get a suitable texture by calling CreateAvatarImageRenderTexture()");
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600EFA3 RID: 61347 RVA: 0x0036CBBC File Offset: 0x0036ADBC
|
|
[Token(Token = "0x600EFA3")]
|
|
[Address(RVA = "0x1FE0540", Offset = "0x1FDF540", VA = "0x181FE0540")]
|
|
public static void PFKMOKFOLCH(RenderTexture FAACBOBPIKK, RenderTexture LBPIJFELLCN)
|
|
{
|
|
PoseableAvatarConfig pbgbnmcpeaj = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
GraphicsFormat graphicsFormat = FAACBOBPIKK.graphicsFormat;
|
|
int num = (int)graphicsFormat;
|
|
int num2 = (int)graphicsFormat;
|
|
int num3 = Mathf.Min(num, num2);
|
|
int num4 = Mathf.RoundToInt(Mathf.Log((float)num, 2f)) - 1;
|
|
int num5 = Mathf.Clamp(num, 1, num4);
|
|
RenderTexture[] array = new RenderTexture[num5];
|
|
int num6 = 0;
|
|
if (num5 > 0)
|
|
{
|
|
num -= num5;
|
|
num = num2;
|
|
num -= num5;
|
|
GraphicsFormat graphicsFormat2 = FAACBOBPIKK.graphicsFormat;
|
|
RenderTexture renderTexture;
|
|
if (renderTexture != 0)
|
|
{
|
|
}
|
|
array[0] = renderTexture;
|
|
int length = array.Length;
|
|
if (num6 == 0)
|
|
{
|
|
}
|
|
RenderTexture renderTexture2 = array[num6];
|
|
int num7 = 0;
|
|
ENBLCMELCHA.OMCPCPLPCNK(renderTexture2, renderTexture, num7);
|
|
num6++;
|
|
}
|
|
GraphicsFormat graphicsFormat3 = FAACBOBPIKK.graphicsFormat;
|
|
int num8 = num5 - 1;
|
|
RenderTexture renderTexture3 = array[num8];
|
|
Material dropShadowMaterial = ENBLCMELCHA.PBGBNMCPEAJ.DropShadowMaterial;
|
|
RenderTexture renderTexture4;
|
|
ENBLCMELCHA.OMCPCPLPCNK(renderTexture3, renderTexture4, dropShadowMaterial);
|
|
RenderTexture.ReleaseTemporary(array[num8]);
|
|
if (renderTexture4 != 0)
|
|
{
|
|
}
|
|
array[0] = renderTexture4;
|
|
if (num5 > 0)
|
|
{
|
|
int length2 = array.Length;
|
|
RenderTexture renderTexture5 = array[num8];
|
|
if (num8 > 0)
|
|
{
|
|
}
|
|
if (num5 > 0)
|
|
{
|
|
RenderTexture.ReleaseTemporary(array[num6]);
|
|
num6++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600EFA4 RID: 61348 RVA: 0x0036CCF0 File Offset: 0x0036AEF0
|
|
[Token(Token = "0x600EFA4")]
|
|
[Address(RVA = "0x1FE0410", Offset = "0x1FDF410", VA = "0x181FE0410")]
|
|
private static void OMCPCPLPCNK(RenderTexture DIEPOPNJNCO, RenderTexture IKAFBCDJOCL, [Optional] Material KFENPJENIOI)
|
|
{
|
|
Graphics.Blit(Texture2D.blackTexture, IKAFBCDJOCL);
|
|
int num = 0;
|
|
if (!(KFENPJENIOI != num))
|
|
{
|
|
Graphics.Blit(DIEPOPNJNCO, IKAFBCDJOCL);
|
|
}
|
|
Graphics.Blit(DIEPOPNJNCO, IKAFBCDJOCL, KFENPJENIOI);
|
|
}
|
|
|
|
// Token: 0x0600EFA5 RID: 61349 RVA: 0x0036CD28 File Offset: 0x0036AF28
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600EFA5")]
|
|
[Address(RVA = "0x1FE09A0", Offset = "0x1FDF9A0", VA = "0x181FE09A0")]
|
|
static ENBLCMELCHA()
|
|
{
|
|
DateTime now = DateTime.Now;
|
|
int num;
|
|
ENBLCMELCHA.PNLDCPGAOPC = new global::System.Random(num);
|
|
}
|
|
|
|
// Token: 0x04009DB2 RID: 40370
|
|
[Token(Token = "0x4009DB2")]
|
|
private static readonly PoseableAvatarConfig PBGBNMCPEAJ = OLJIOKGMCPN.MNKDOANEFLK<PoseableAvatarConfig>("LoadingScreen");
|
|
|
|
// Token: 0x04009DB3 RID: 40371
|
|
[Token(Token = "0x4009DB3")]
|
|
private static global::System.Random PNLDCPGAOPC;
|
|
|
|
// Token: 0x04009DB4 RID: 40372
|
|
[Token(Token = "0x4009DB4")]
|
|
public const string KBPLNLKJCMO = "LoadingScreen";
|
|
|
|
// Token: 0x0200249B RID: 9371
|
|
[Token(Token = "0x200249B")]
|
|
[CompilerGenerated]
|
|
private sealed class EOGMOECOOGG
|
|
{
|
|
// Token: 0x0600EFA6 RID: 61350 RVA: 0x0036CD58 File Offset: 0x0036AF58
|
|
[Token(Token = "0x600EFA6")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public EOGMOECOOGG()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600EFA7 RID: 61351 RVA: 0x0036CD6C File Offset: 0x0036AF6C
|
|
[Token(Token = "0x600EFA7")]
|
|
[Address(RVA = "0x1FE76A0", Offset = "0x1FE66A0", VA = "0x181FE76A0")]
|
|
internal DABKFAIHBBP <CaptureAvatarPoseAsync>b__0()
|
|
{
|
|
GameObject gameObject = this.puppetInstance.gameObject;
|
|
RenderTexture renderTexture = this.renderTexture;
|
|
ImposterRenderConfig renderConfiguration = this.asset.RenderConfiguration;
|
|
if (renderConfiguration == 0)
|
|
{
|
|
PoseableAvatarConfig pbgbnmcpeaj = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
}
|
|
JODFIHBJHJM.LHIJJOKKALC(gameObject, renderTexture, renderConfiguration);
|
|
DABKFAIHBBP <EIDHKJMHBEC>k__BackingField = JJEKJGALHKO.<EIDHKJMHBEC>k__BackingField;
|
|
DABKFAIHBBP dabkfaihbbp;
|
|
return dabkfaihbbp;
|
|
}
|
|
|
|
// Token: 0x0600EFA8 RID: 61352 RVA: 0x0036CDCC File Offset: 0x0036AFCC
|
|
[Token(Token = "0x600EFA8")]
|
|
[Address(RVA = "0x1FE7870", Offset = "0x1FE6870", VA = "0x181FE7870")]
|
|
internal void <CaptureAvatarPoseAsync>b__1()
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.puppetInstance.gameObject);
|
|
}
|
|
|
|
// Token: 0x04009DB5 RID: 40373
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4009DB5")]
|
|
public PoseableAvatarPuppet puppetInstance;
|
|
|
|
// Token: 0x04009DB6 RID: 40374
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4009DB6")]
|
|
public RenderTexture renderTexture;
|
|
|
|
// Token: 0x04009DB7 RID: 40375
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4009DB7")]
|
|
public PoseableAvatarAsset asset;
|
|
}
|
|
}
|