759 lines
28 KiB
C#
759 lines
28 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using RecRoom.Core.Imposters;
|
|
using RecRoom.Players.Puppet;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering.Universal;
|
|
using Valve.VR;
|
|
|
|
namespace RRUI.Data
|
|
{
|
|
// Token: 0x020008EF RID: 2287
|
|
[Token(Token = "0x20008EF")]
|
|
public class AnimatedPlayerPuppetRenderTextureModel : RRUIModel
|
|
{
|
|
// Token: 0x17000B02 RID: 2818
|
|
// (get) Token: 0x06003DFE RID: 15870 RVA: 0x000F8AE8 File Offset: 0x000F6CE8
|
|
[Token(Token = "0x17000B02")]
|
|
public bool ALLPBNCOPIH
|
|
{
|
|
[Token(Token = "0x6003DFE")]
|
|
[Address(RVA = "0x10AAA50", Offset = "0x10A9850", VA = "0x1810AAA50")]
|
|
get
|
|
{
|
|
return this.MEAPNPCHBFL.CFLJGNJLBFG;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000B03 RID: 2819
|
|
// (get) Token: 0x06003DFF RID: 15871 RVA: 0x000F8B08 File Offset: 0x000F6D08
|
|
// (set) Token: 0x06003E00 RID: 15872 RVA: 0x000F8B1C File Offset: 0x000F6D1C
|
|
[Token(Token = "0x17000B03")]
|
|
public AnimatedPlayerPuppet ILNHNEEILMH
|
|
{
|
|
[Token(Token = "0x6003DFF")]
|
|
[Address(RVA = "0x8379D0", Offset = "0x8367D0", VA = "0x1808379D0")]
|
|
get
|
|
{
|
|
return this.BAPFKFIJECM;
|
|
}
|
|
[Token(Token = "0x6003E00")]
|
|
[Address(RVA = "0x10AAA80", Offset = "0x10A9880", VA = "0x1810AAA80")]
|
|
set
|
|
{
|
|
this.BAPFKFIJECM = value;
|
|
base.JOJPOMANGPO();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000B04 RID: 2820
|
|
// (get) Token: 0x06003E01 RID: 15873 RVA: 0x000F8B38 File Offset: 0x000F6D38
|
|
[Token(Token = "0x17000B04")]
|
|
public RenderTexture FDPHEELKOPB
|
|
{
|
|
[Token(Token = "0x6003E01")]
|
|
[Address(RVA = "0x60CF40", Offset = "0x60BD40", VA = "0x18060CF40")]
|
|
get
|
|
{
|
|
return this.GKKBHKOFBEK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000B05 RID: 2821
|
|
// (get) Token: 0x06003E02 RID: 15874 RVA: 0x000F8B4C File Offset: 0x000F6D4C
|
|
[Token(Token = "0x17000B05")]
|
|
private int IICMOPENLGG
|
|
{
|
|
[Token(Token = "0x6003E02")]
|
|
[Address(RVA = "0x10AA440", Offset = "0x10A9240", VA = "0x1810AA440")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06003E02)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 RRUI.Data.AnimatedPlayerPuppetRenderTextureModel::OOKHKCIINNF()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_00:
|
|
brtrue(IL_00, cne:bool(ldfld:JIBNNKFFHAP(AnimatedPlayerPuppetRenderTextureModel::size, ldloc:AnimatedPlayerPuppetRenderTextureModel(this)), ldc.i4:JIBNNKFFHAP(0)))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x17000B06 RID: 2822
|
|
// (get) Token: 0x06003E03 RID: 15875 RVA: 0x000F8B64 File Offset: 0x000F6D64
|
|
[Token(Token = "0x17000B06")]
|
|
private ImposterRenderConfig BFJAJMCCBBE
|
|
{
|
|
[Token(Token = "0x6003E03")]
|
|
[Address(RVA = "0x10AA370", Offset = "0x10A9170", VA = "0x1810AA370")]
|
|
get
|
|
{
|
|
float indexCurl = ((ISteamVR_Action_Skeleton_Source)this.IPIBFAIKBBG).indexCurl;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000B07 RID: 2823
|
|
// (get) Token: 0x06003E04 RID: 15876 RVA: 0x000F8B84 File Offset: 0x000F6D84
|
|
[Token(Token = "0x17000B07")]
|
|
private static int ILMKDECMDII
|
|
{
|
|
[Token(Token = "0x6003E04")]
|
|
[Address(RVA = "0x10AA140", Offset = "0x10A8F40", VA = "0x1810AA140")]
|
|
get
|
|
{
|
|
if (SingletonMonoBehaviour.FFNIFALJLDD && SingletonMonoBehaviour.ONCPNMDGGKG.GMKJEJDALGA)
|
|
{
|
|
bool showPlatformSpecificDisplayName = SingletonMonoBehaviour.ONCPNMDGGKG.GMKJEJDALGA;
|
|
}
|
|
Dictionary<PPDOPHKNMCK, int> kjpadecbpnc = AnimatedPlayerPuppetRenderTextureModel.KJPADECBPNC;
|
|
return 60;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003E05 RID: 15877 RVA: 0x000F8BC4 File Offset: 0x000F6DC4
|
|
[Token(Token = "0x6003E05")]
|
|
[Address(RVA = "0x10A9FA0", Offset = "0x10A8DA0", VA = "0x1810A9FA0", Slot = "15")]
|
|
protected override void JMFHPBDMELA()
|
|
{
|
|
base.JMFHPBDMELA();
|
|
ImposterRawImage.JIBNNKFFHAP jibnnkffhap = this.size;
|
|
if (jibnnkffhap == ImposterRawImage.JIBNNKFFHAP.Custom)
|
|
{
|
|
}
|
|
int num = (int)jibnnkffhap;
|
|
RenderTexture renderTexture = JODFIHBJHJM.JGHJHCOJJEH((int)jibnnkffhap, num);
|
|
this.GKKBHKOFBEK = renderTexture;
|
|
string text = string.Format("{0} texture", this);
|
|
renderTexture.name = text;
|
|
this.ELOFOJGBGLO();
|
|
BJOIBBBOIKO<ImposterRenderConfig> ipibfaikbbg = this.IPIBFAIKBBG;
|
|
int num2 = 0;
|
|
ImposterRenderConfig imposterRenderConfig = this.defaultImposterRenderConfig;
|
|
bool flag = ipibfaikbbg.DOEHAPOJMON(imposterRenderConfig, this, num2);
|
|
CJMGCKECLBD cjmgckeclbd = new CJMGCKECLBD();
|
|
this.CGNADFCICLE = cjmgckeclbd;
|
|
CJMGCKECLBD cjmgckeclbd2 = new CJMGCKECLBD();
|
|
this.ECMCBGMHDNK = cjmgckeclbd2;
|
|
PBCPECJNPKD pbcpecjnpkd = new PBCPECJNPKD();
|
|
this.BBFPJIABHKJ = pbcpecjnpkd;
|
|
Action<float> action = new Action(this.GEKAPGINNIL);
|
|
IDisposable disposable = ADIFCODGAML.GIEOOLAGCKA(this, action, Scheduler.NEIJEKIKDOG.PreRender);
|
|
this.AENELEOCFPJ = disposable;
|
|
}
|
|
|
|
// Token: 0x06003E06 RID: 15878 RVA: 0x000F8C84 File Offset: 0x000F6E84
|
|
[Token(Token = "0x6003E06")]
|
|
[Address(RVA = "0x10A8FD0", Offset = "0x10A7DD0", VA = "0x1810A8FD0", Slot = "17")]
|
|
protected override void CEJBCCPEGEB()
|
|
{
|
|
base.CEJBCCPEGEB();
|
|
Camera hpnbgfiljbk = this.HPNBGFILJBK;
|
|
int num = 0;
|
|
bool flag = hpnbgfiljbk != num;
|
|
int num2 = 0;
|
|
if (flag)
|
|
{
|
|
GameObject gameObject = this.HPNBGFILJBK.gameObject;
|
|
int num3 = 0;
|
|
if (gameObject != num3)
|
|
{
|
|
OMCHJHPFBDN.KGFPNIMJHIC(this.HPNBGFILJBK.gameObject);
|
|
this.HPNBGFILJBK = num2;
|
|
}
|
|
}
|
|
RenderTexture gkkbhkofbek = this.GKKBHKOFBEK;
|
|
int num4 = 0;
|
|
if (gkkbhkofbek != num4)
|
|
{
|
|
OMCHJHPFBDN.KBFLHNONOHF(this.GKKBHKOFBEK);
|
|
this.GKKBHKOFBEK = num2;
|
|
}
|
|
RenderTexture omkbogafiib = this.OMKBOGAFIIB;
|
|
int num5 = 0;
|
|
if (omkbogafiib != num5)
|
|
{
|
|
OMCHJHPFBDN.KBFLHNONOHF(this.OMKBOGAFIIB);
|
|
this.OMKBOGAFIIB = num2;
|
|
}
|
|
RenderTexture hnhchcagjaj = this.HNHCHCAGJAJ;
|
|
int num6 = 0;
|
|
if (hnhchcagjaj != num6)
|
|
{
|
|
OMCHJHPFBDN.KBFLHNONOHF(this.HNHCHCAGJAJ);
|
|
this.HNHCHCAGJAJ = num2;
|
|
}
|
|
ManagedTexture adgpenejhbj = this.ADGPENEJHBJ;
|
|
if (adgpenejhbj != 0)
|
|
{
|
|
adgpenejhbj.GNGOOMMLPHE();
|
|
}
|
|
if (this.AENELEOCFPJ != 0)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000B08 RID: 2824
|
|
// (get) Token: 0x06003E07 RID: 15879 RVA: 0x000F8D80 File Offset: 0x000F6F80
|
|
[Token(Token = "0x17000B08")]
|
|
protected override bool PHGOLNMDJLH
|
|
{
|
|
[Token(Token = "0x6003E07")]
|
|
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "12")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003E08 RID: 15880 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6003E08")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "22")]
|
|
protected override void AHFKACICJNC()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06003E09 RID: 15881 RVA: 0x000F8D90 File Offset: 0x000F6F90
|
|
[Token(Token = "0x6003E09")]
|
|
[Address(RVA = "0x10A9F00", Offset = "0x10A8D00", VA = "0x1810A9F00", Slot = "26")]
|
|
protected override DABKFAIHBBP GLPJPIEOLDF()
|
|
{
|
|
return JJEKJGALHKO.<EIDHKJMHBEC>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06003E0A RID: 15882 RVA: 0x000F8DA4 File Offset: 0x000F6FA4
|
|
[Token(Token = "0x6003E0A")]
|
|
[Address(RVA = "0x10AA3A0", Offset = "0x10A91A0", VA = "0x1810AA3A0")]
|
|
private void ONJIDDGMHND()
|
|
{
|
|
ImposterRawImage.JIBNNKFFHAP jibnnkffhap = this.size;
|
|
if (jibnnkffhap == ImposterRawImage.JIBNNKFFHAP.Custom)
|
|
{
|
|
}
|
|
int num = (int)jibnnkffhap;
|
|
RenderTexture renderTexture = JODFIHBJHJM.JGHJHCOJJEH((int)jibnnkffhap, num);
|
|
this.GKKBHKOFBEK = renderTexture;
|
|
string text = string.Format("{0} texture", this);
|
|
renderTexture.name = text;
|
|
}
|
|
|
|
// Token: 0x06003E0B RID: 15883 RVA: 0x000F8DE8 File Offset: 0x000F6FE8
|
|
[Token(Token = "0x6003E0B")]
|
|
[Address(RVA = "0x10A9520", Offset = "0x10A8320", VA = "0x1810A9520")]
|
|
private void ELOFOJGBGLO()
|
|
{
|
|
Camera camera = new GameObject("AnimatedPlayerPuppetRenderTextureCamera").AddComponent<Camera>();
|
|
this.HPNBGFILJBK = camera;
|
|
camera.aspect = 1f;
|
|
this.HPNBGFILJBK.farClipPlane = 10f;
|
|
Camera hpnbgfiljbk = this.HPNBGFILJBK;
|
|
int num = 0;
|
|
hpnbgfiljbk.useOcclusionCulling = num != 0;
|
|
this.HPNBGFILJBK.clearFlags = CameraClearFlags.Color;
|
|
Camera hpnbgfiljbk2 = this.HPNBGFILJBK;
|
|
Camera hpnbgfiljbk3 = this.HPNBGFILJBK;
|
|
int num2 = 0;
|
|
hpnbgfiljbk3.enabled = num2 != 0;
|
|
Camera hpnbgfiljbk4 = this.HPNBGFILJBK;
|
|
int num3 = 0;
|
|
hpnbgfiljbk4.stereoTargetEye = (StereoTargetEyeMask)num3;
|
|
this.HPNBGFILJBK.cullingMask = 4096;
|
|
UniversalAdditionalCameraData universalAdditionalCameraData = this.HPNBGFILJBK.gameObject.AddComponent<UniversalAdditionalCameraData>();
|
|
universalAdditionalCameraData.m_forceRenderMirrors = false;
|
|
universalAdditionalCameraData.m_RenderShadows = false;
|
|
}
|
|
|
|
// Token: 0x06003E0C RID: 15884 RVA: 0x000F8EAC File Offset: 0x000F70AC
|
|
[Token(Token = "0x6003E0C")]
|
|
[Address(RVA = "0x10A8F50", Offset = "0x10A7D50", VA = "0x1810A8F50")]
|
|
public void AddRenderConfig(object PIHIPPPPEBI, ImposterRenderConfig PBGBNMCPEAJ, int JMHKMOACHDG)
|
|
{
|
|
bool flag = this.IPIBFAIKBBG.DOEHAPOJMON(PBGBNMCPEAJ, PIHIPPPPEBI, JMHKMOACHDG);
|
|
}
|
|
|
|
// Token: 0x06003E0D RID: 15885 RVA: 0x000F8ED0 File Offset: 0x000F70D0
|
|
[Token(Token = "0x6003E0D")]
|
|
[Address(RVA = "0x10AA480", Offset = "0x10A9280", VA = "0x1810AA480")]
|
|
public void RemoveRenderConfig(object PIHIPPPPEBI)
|
|
{
|
|
bool flag = this.IPIBFAIKBBG.HAHBGOMEMEE(PIHIPPPPEBI);
|
|
}
|
|
|
|
// Token: 0x06003E0E RID: 15886 RVA: 0x000F8EF0 File Offset: 0x000F70F0
|
|
[Token(Token = "0x6003E0E")]
|
|
[Address(RVA = "0x10A8EF0", Offset = "0x10A7CF0", VA = "0x1810A8EF0")]
|
|
public void AddApplyInputRotation(object PIHIPPPPEBI)
|
|
{
|
|
this.MEAPNPCHBFL.BPAJKKAGPKB(PIHIPPPPEBI);
|
|
}
|
|
|
|
// Token: 0x06003E0F RID: 15887 RVA: 0x000F8F10 File Offset: 0x000F7110
|
|
[Token(Token = "0x6003E0F")]
|
|
[Address(RVA = "0x10AA450", Offset = "0x10A9250", VA = "0x1810AA450")]
|
|
public void RemoveApplyInputRotation(object PIHIPPPPEBI)
|
|
{
|
|
this.MEAPNPCHBFL.BIHKNNPGGKP(PIHIPPPPEBI);
|
|
}
|
|
|
|
// Token: 0x06003E10 RID: 15888 RVA: 0x000F8F30 File Offset: 0x000F7130
|
|
[Token(Token = "0x6003E10")]
|
|
[Address(RVA = "0x10A8F20", Offset = "0x10A7D20", VA = "0x1810A8F20")]
|
|
public void AddCameraDeltaRotationDegrees(float DCGDJBKAAPL, float CKAKIMGEBBN)
|
|
{
|
|
this.PLHHJAMGEIC = DCGDJBKAAPL;
|
|
this.EIGLKOCICNG = CKAKIMGEBBN;
|
|
}
|
|
|
|
// Token: 0x06003E11 RID: 15889 RVA: 0x000F8F4C File Offset: 0x000F714C
|
|
[Token(Token = "0x6003E11")]
|
|
[Address(RVA = "0x10AA4E0", Offset = "0x10A92E0", VA = "0x1810AA4E0")]
|
|
public void ResetInputAngles()
|
|
{
|
|
int num = 0;
|
|
this.PLHHJAMGEIC = (float)num;
|
|
}
|
|
|
|
// Token: 0x06003E12 RID: 15890 RVA: 0x000F8F64 File Offset: 0x000F7164
|
|
[Token(Token = "0x6003E12")]
|
|
[Address(RVA = "0x10AA4F0", Offset = "0x10A92F0", VA = "0x1810AA4F0")]
|
|
public void SaveSnapshotToProfilePhoto()
|
|
{
|
|
RenderTexture omkbogafiib = this.OMKBOGAFIIB;
|
|
int num = 0;
|
|
if (omkbogafiib == num)
|
|
{
|
|
ImposterRawImage.JIBNNKFFHAP jibnnkffhap = this.size;
|
|
if (jibnnkffhap == ImposterRawImage.JIBNNKFFHAP.Custom)
|
|
{
|
|
}
|
|
int num2 = (int)jibnnkffhap;
|
|
RenderTexture renderTexture = JODFIHBJHJM.JGHJHCOJJEH((int)jibnnkffhap, num2);
|
|
this.OMKBOGAFIIB = renderTexture;
|
|
}
|
|
RenderTexture hnhchcagjaj = this.HNHCHCAGJAJ;
|
|
int num3 = 0;
|
|
if (hnhchcagjaj == num3)
|
|
{
|
|
int num4;
|
|
if (this.size == ImposterRawImage.JIBNNKFFHAP.Custom)
|
|
{
|
|
num4 = this.customSize;
|
|
}
|
|
RenderTexture renderTexture2 = JODFIHBJHJM.JGHJHCOJJEH(num4, num4);
|
|
this.HNHCHCAGJAJ = renderTexture2;
|
|
}
|
|
Transform visualRoot = this.BAPFKFIJECM.visualRoot;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
float z2 = this.snapshotRenderConfig.cameraOffsetPosition.z;
|
|
Vector3 vector2;
|
|
float z3 = vector2.z;
|
|
float z4 = this.snapshotRenderConfig.cameraOffsetDirection.z;
|
|
float z5 = Vector3.zero.z;
|
|
Vector3 cameraPosition;
|
|
Quaternion cameraRotation;
|
|
Action action = delegate
|
|
{
|
|
AnimatedPlayerPuppetRenderTextureModel <>4__this = this;
|
|
Quaternion identity = Quaternion.identity;
|
|
AnimatedPlayerPuppetRenderTextureModel <>4__this2 = this;
|
|
ImposterRenderConfig imposterRenderConfig = <>4__this2.snapshotRenderConfig;
|
|
Quaternion cameraRotation2 = cameraRotation;
|
|
float z6 = cameraPosition.z;
|
|
RenderTexture omkbogafiib2 = <>4__this2.OMKBOGAFIIB;
|
|
float cameraPerspectiveAngle = imposterRenderConfig.cameraPerspectiveAngle;
|
|
RenderTexture hnhchcagjaj2 = this.HNHCHCAGJAJ;
|
|
AnimatedPlayerPuppetRenderTextureModel <>4__this3 = this;
|
|
Texture2D texture2D = <>4__this3.snapshotBackgroundTexture;
|
|
RenderTexture hnhchcagjaj3 = <>4__this3.HNHCHCAGJAJ;
|
|
Graphics.Blit(texture2D, hnhchcagjaj3);
|
|
AnimatedPlayerPuppetRenderTextureModel <>4__this4 = this;
|
|
Material material = <>4__this4.alphaBlitMaterial;
|
|
RenderTexture hnhchcagjaj4 = <>4__this4.HNHCHCAGJAJ;
|
|
Graphics.Blit(<>4__this4.OMKBOGAFIIB, hnhchcagjaj4, material);
|
|
AnimatedPlayerPuppetRenderTextureModel <>4__this5 = this;
|
|
ManagedTexture adgpenejhbj = <>4__this5.ADGPENEJHBJ;
|
|
RenderTexture hnhchcagjaj5 = <>4__this5.HNHCHCAGJAJ;
|
|
adgpenejhbj.DPCIGLIJMPF(hnhchcagjaj5);
|
|
DABKFAIHBBP dabkfaihbbp = PEGGCEDHBOF.CCCDIOALPJK(this.ADGPENEJHBJ);
|
|
int num5;
|
|
Action<string> action2 = new Action(num5.LogError);
|
|
num5 = 0;
|
|
throw new NullReferenceException();
|
|
};
|
|
KFBABPAPIMB kfbabpapimb = this.GGGCLEIGKCE(action);
|
|
}
|
|
|
|
// Token: 0x06003E13 RID: 15891 RVA: 0x000F905C File Offset: 0x000F725C
|
|
[Token(Token = "0x6003E13")]
|
|
[Address(RVA = "0x10A96C0", Offset = "0x10A84C0", VA = "0x1810A96C0")]
|
|
private void GEKAPGINNIL(float POGAEJIEPIM)
|
|
{
|
|
AnimatedPlayerPuppet bapfkfijecm = this.BAPFKFIJECM;
|
|
int num = 0;
|
|
if (!(bapfkfijecm == num))
|
|
{
|
|
float unscaledTime = Time.unscaledTime;
|
|
if (this.HPBLDCOENHD <= unscaledTime)
|
|
{
|
|
float time = Time.time;
|
|
float time2 = Time.time;
|
|
this.DHNINFGIDEK = time2;
|
|
float unscaledTime2 = Time.unscaledTime;
|
|
int num2 = AnimatedPlayerPuppetRenderTextureModel.ILMKDECMDII;
|
|
BJOIBBBOIKO<ImposterRenderConfig> ipibfaikbbg = this.IPIBFAIKBBG;
|
|
this.HPBLDCOENHD = 1f;
|
|
string text = ipibfaikbbg.ToString();
|
|
if (this.MEAPNPCHBFL.CFLJGNJLBFG)
|
|
{
|
|
if (this.applyInputYawToPuppet)
|
|
{
|
|
}
|
|
}
|
|
Vector3 zero = Vector3.zero;
|
|
AnimatedPlayerPuppet bapfkfijecm2 = this.BAPFKFIJECM;
|
|
CJMGCKECLBD cgnadfcicle = this.CGNADFCICLE;
|
|
Transform visualRoot = bapfkfijecm2.visualRoot;
|
|
CJMGCKECLBD cgnadfcicle2 = this.CGNADFCICLE;
|
|
float num3 = this.dynamicOffsetSmoothTime;
|
|
Vector3 vector = cgnadfcicle.GDIGLMAABGN(1f, num3);
|
|
CJMGCKECLBD ecmcbgmhdnk = this.ECMCBGMHDNK;
|
|
CJMGCKECLBD ecmcbgmhdnk2 = this.ECMCBGMHDNK;
|
|
float num4 = this.dynamicOffsetSmoothTime;
|
|
Vector3 vector2 = ecmcbgmhdnk.GDIGLMAABGN(1f, num4);
|
|
PBCPECJNPKD bbfpjiabhkj = this.BBFPJIABHKJ;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003E14 RID: 15892 RVA: 0x000F91C4 File Offset: 0x000F73C4
|
|
[Token(Token = "0x6003E14")]
|
|
[Address(RVA = "0x10A9C30", Offset = "0x10A8A30", VA = "0x1810A9C30")]
|
|
private void GIIONICBHOI(Quaternion KOLJFIABJEO, Vector3 GLIJPIDABED, Quaternion NNBMANPICHA, float NPODDBFPJEK, ImposterRenderConfig KEKDKDJOBAL, RenderTexture LDEKHANDCBO)
|
|
{
|
|
AnimatedPlayerPuppet bapfkfijecm = this.BAPFKFIJECM;
|
|
int num = 0;
|
|
if (!(bapfkfijecm == num))
|
|
{
|
|
Transform head = this.BAPFKFIJECM.head;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform visualRoot = this.BAPFKFIJECM.visualRoot;
|
|
Quaternion puppetDefaultRotation = AnimatedPlayerPuppetAvatarModel.PuppetDefaultRotation;
|
|
Transform transform = this.HPNBGFILJBK.transform;
|
|
float z2 = GLIJPIDABED.z;
|
|
Camera hpnbgfiljbk = this.HPNBGFILJBK;
|
|
this.HPNBGFILJBK.clearFlags = CameraClearFlags.Depth;
|
|
Camera hpnbgfiljbk2 = this.HPNBGFILJBK;
|
|
Camera hpnbgfiljbk3 = this.HPNBGFILJBK;
|
|
int num2 = 0;
|
|
hpnbgfiljbk3.enabled = num2 != 0;
|
|
this.HPNBGFILJBK.Render();
|
|
Camera hpnbgfiljbk4 = this.HPNBGFILJBK;
|
|
int num3 = 0;
|
|
hpnbgfiljbk4.targetTexture = num3;
|
|
JODFIHBJHJM.KEMHHNJNBCF();
|
|
JODFIHBJHJM.DJIKGEKGANK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003E15 RID: 15893 RVA: 0x000F928C File Offset: 0x000F748C
|
|
[Token(Token = "0x6003E15")]
|
|
[Address(RVA = "0x10A91E0", Offset = "0x10A7FE0", VA = "0x1810A91E0")]
|
|
private static void EHFNNLHNHDG(Vector3 DDELPDMAHFA, Vector3 AMPEGGNILBL, Vector3 PMIOINIOINH, out Vector3 GLIJPIDABED, out Quaternion NNBMANPICHA)
|
|
{
|
|
int num = 0;
|
|
float magnitude = AMPEGGNILBL.magnitude;
|
|
int num2 = 0;
|
|
if (magnitude > (float)num2)
|
|
{
|
|
Vector3 vector = magnitude * num;
|
|
}
|
|
Vector3 zero = Vector3.zero;
|
|
int num3 = 0;
|
|
Vector3 up = Vector3.up;
|
|
Quaternion quaternion = Quaternion.AngleAxis(magnitude, num3);
|
|
int num4 = 0;
|
|
Vector3 right = Vector3.right;
|
|
Quaternion quaternion2 = Quaternion.AngleAxis(magnitude, num4);
|
|
Vector3 up2 = Vector3.up;
|
|
Vector3 forward = Vector3.forward;
|
|
Vector3 vector2;
|
|
float z = vector2.z;
|
|
GLIJPIDABED.z = z;
|
|
}
|
|
|
|
// Token: 0x06003E16 RID: 15894 RVA: 0x000F9300 File Offset: 0x000F7500
|
|
[Token(Token = "0x6003E16")]
|
|
[Address(RVA = "0x10AA990", Offset = "0x10A9790", VA = "0x1810AA990")]
|
|
public AnimatedPlayerPuppetRenderTextureModel()
|
|
{
|
|
ManagedTexture managedTexture = new ManagedTexture("TitleScreenProfilePhoto");
|
|
this.ADGPENEJHBJ = managedTexture;
|
|
BJOIBBBOIKO<ImposterRenderConfig> bjoibbboiko = new BJOIBBBOIKO();
|
|
this.IPIBFAIKBBG = bjoibbboiko;
|
|
AOLMGGAPKEH aolmggapkeh = new AOLMGGAPKEH();
|
|
this.MEAPNPCHBFL = aolmggapkeh;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x06003E17 RID: 15895 RVA: 0x000F9360 File Offset: 0x000F7560
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x6003E17")]
|
|
[Address(RVA = "0x10AA820", Offset = "0x10A9620", VA = "0x1810AA820")]
|
|
static AnimatedPlayerPuppetRenderTextureModel()
|
|
{
|
|
Dictionary<PPDOPHKNMCK, int> dictionary = new Dictionary();
|
|
int num = 0;
|
|
dictionary.Add(num, 15);
|
|
dictionary.Add((uint)1, 15);
|
|
dictionary.Add((uint)2, 15);
|
|
dictionary.Add((uint)3, 15);
|
|
dictionary.Add((uint)4, 15);
|
|
dictionary.Add((uint)6, 15);
|
|
dictionary.Add((uint)8, 15);
|
|
dictionary.Add((uint)7, 15);
|
|
dictionary.Add((uint)5, 15);
|
|
dictionary.Add((uint)9, 15);
|
|
dictionary.Add((uint)10, 15);
|
|
AnimatedPlayerPuppetRenderTextureModel.KJPADECBPNC = dictionary;
|
|
}
|
|
|
|
// Token: 0x04003374 RID: 13172
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4003374")]
|
|
[SerializeField]
|
|
[Tooltip("Pixel size of the render")]
|
|
[Header("Rendering")]
|
|
private ImposterRawImage.JIBNNKFFHAP size = (ImposterRawImage.JIBNNKFFHAP)((ulong)1024L);
|
|
|
|
// Token: 0x04003375 RID: 13173
|
|
[FieldOffset(Offset = "0x6C")]
|
|
[Token(Token = "0x4003375")]
|
|
[SerializeField]
|
|
[OMAIFIIBMNL("size", 0)]
|
|
[Tooltip("Custom pixel size for rendered imposter")]
|
|
private int customSize;
|
|
|
|
// Token: 0x04003376 RID: 13174
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4003376")]
|
|
[SerializeField]
|
|
[Tooltip("Render camera and lighting settings")]
|
|
private ImposterRenderConfig defaultImposterRenderConfig;
|
|
|
|
// Token: 0x04003377 RID: 13175
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4003377")]
|
|
[SerializeField]
|
|
private float dynamicOffsetSmoothTime = 0.33f;
|
|
|
|
// Token: 0x04003378 RID: 13176
|
|
[FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x4003378")]
|
|
[SerializeField]
|
|
private bool applyInputYawToPuppet = true;
|
|
|
|
// Token: 0x04003379 RID: 13177
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4003379")]
|
|
[SerializeField]
|
|
[Header("Snapshot")]
|
|
private ImposterRenderConfig snapshotRenderConfig;
|
|
|
|
// Token: 0x0400337A RID: 13178
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400337A")]
|
|
[SerializeField]
|
|
private Texture2D snapshotBackgroundTexture;
|
|
|
|
// Token: 0x0400337B RID: 13179
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400337B")]
|
|
[SerializeField]
|
|
private Material alphaBlitMaterial;
|
|
|
|
// Token: 0x0400337C RID: 13180
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400337C")]
|
|
private readonly ManagedTexture ADGPENEJHBJ;
|
|
|
|
// Token: 0x0400337D RID: 13181
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400337D")]
|
|
private RenderTexture OMKBOGAFIIB;
|
|
|
|
// Token: 0x0400337E RID: 13182
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x400337E")]
|
|
private RenderTexture HNHCHCAGJAJ;
|
|
|
|
// Token: 0x0400337F RID: 13183
|
|
[FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x400337F")]
|
|
private IDisposable AENELEOCFPJ;
|
|
|
|
// Token: 0x04003380 RID: 13184
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x4003380")]
|
|
private Camera HPNBGFILJBK;
|
|
|
|
// Token: 0x04003381 RID: 13185
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x4003381")]
|
|
private float DHNINFGIDEK;
|
|
|
|
// Token: 0x04003382 RID: 13186
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x4003382")]
|
|
private CJMGCKECLBD CGNADFCICLE;
|
|
|
|
// Token: 0x04003383 RID: 13187
|
|
[FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x4003383")]
|
|
private CJMGCKECLBD ECMCBGMHDNK;
|
|
|
|
// Token: 0x04003384 RID: 13188
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x4003384")]
|
|
private PBCPECJNPKD BBFPJIABHKJ;
|
|
|
|
// Token: 0x04003385 RID: 13189
|
|
[FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x4003385")]
|
|
private float PLHHJAMGEIC;
|
|
|
|
// Token: 0x04003386 RID: 13190
|
|
[FieldOffset(Offset = "0xE4")]
|
|
[Token(Token = "0x4003386")]
|
|
private float EIGLKOCICNG;
|
|
|
|
// Token: 0x04003387 RID: 13191
|
|
[FieldOffset(Offset = "0xE8")]
|
|
[Token(Token = "0x4003387")]
|
|
private readonly BJOIBBBOIKO<ImposterRenderConfig> IPIBFAIKBBG;
|
|
|
|
// Token: 0x04003388 RID: 13192
|
|
[FieldOffset(Offset = "0xF0")]
|
|
[Token(Token = "0x4003388")]
|
|
private readonly AOLMGGAPKEH MEAPNPCHBFL;
|
|
|
|
// Token: 0x04003389 RID: 13193
|
|
[FieldOffset(Offset = "0xF8")]
|
|
[Token(Token = "0x4003389")]
|
|
private AnimatedPlayerPuppet BAPFKFIJECM;
|
|
|
|
// Token: 0x0400338A RID: 13194
|
|
[FieldOffset(Offset = "0x100")]
|
|
[Token(Token = "0x400338A")]
|
|
private RenderTexture GKKBHKOFBEK;
|
|
|
|
// Token: 0x0400338B RID: 13195
|
|
[Token(Token = "0x400338B")]
|
|
private static readonly Dictionary<PPDOPHKNMCK, int> KJPADECBPNC;
|
|
|
|
// Token: 0x0400338C RID: 13196
|
|
[FieldOffset(Offset = "0x108")]
|
|
[Token(Token = "0x400338C")]
|
|
private float HPBLDCOENHD;
|
|
|
|
// Token: 0x020008F0 RID: 2288
|
|
[Token(Token = "0x20008F0")]
|
|
public enum PuppetRenderConfigPriority
|
|
{
|
|
// Token: 0x0400338E RID: 13198
|
|
[Token(Token = "0x400338E")]
|
|
Default,
|
|
// Token: 0x0400338F RID: 13199
|
|
[Token(Token = "0x400338F")]
|
|
Low = 10,
|
|
// Token: 0x04003390 RID: 13200
|
|
[Token(Token = "0x4003390")]
|
|
Medium = 20,
|
|
// Token: 0x04003391 RID: 13201
|
|
[Token(Token = "0x4003391")]
|
|
High = 30
|
|
}
|
|
|
|
// Token: 0x020008F1 RID: 2289
|
|
[Token(Token = "0x20008F1")]
|
|
[CompilerGenerated]
|
|
private sealed class COPBMOCDDLL
|
|
{
|
|
// Token: 0x06003E18 RID: 15896 RVA: 0x000F93F0 File Offset: 0x000F75F0
|
|
[Token(Token = "0x6003E18")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public COPBMOCDDLL()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06003E19 RID: 15897 RVA: 0x000F9404 File Offset: 0x000F7604
|
|
[Token(Token = "0x6003E19")]
|
|
[Address(RVA = "0x10B4000", Offset = "0x10B2E00", VA = "0x1810B4000")]
|
|
internal void <SaveSnapshotToProfilePhoto>b__0()
|
|
{
|
|
AnimatedPlayerPuppetRenderTextureModel animatedPlayerPuppetRenderTextureModel = this.<>4__this;
|
|
Quaternion identity = Quaternion.identity;
|
|
AnimatedPlayerPuppetRenderTextureModel animatedPlayerPuppetRenderTextureModel2 = this.<>4__this;
|
|
ImposterRenderConfig snapshotRenderConfig = animatedPlayerPuppetRenderTextureModel2.snapshotRenderConfig;
|
|
Quaternion quaternion = this.cameraRotation;
|
|
float z = this.cameraPosition.z;
|
|
RenderTexture omkbogafiib = animatedPlayerPuppetRenderTextureModel2.OMKBOGAFIIB;
|
|
float cameraPerspectiveAngle = snapshotRenderConfig.cameraPerspectiveAngle;
|
|
RenderTexture hnhchcagjaj = this.<>4__this.HNHCHCAGJAJ;
|
|
AnimatedPlayerPuppetRenderTextureModel animatedPlayerPuppetRenderTextureModel3 = this.<>4__this;
|
|
Texture2D snapshotBackgroundTexture = animatedPlayerPuppetRenderTextureModel3.snapshotBackgroundTexture;
|
|
RenderTexture hnhchcagjaj2 = animatedPlayerPuppetRenderTextureModel3.HNHCHCAGJAJ;
|
|
Graphics.Blit(snapshotBackgroundTexture, hnhchcagjaj2);
|
|
AnimatedPlayerPuppetRenderTextureModel animatedPlayerPuppetRenderTextureModel4 = this.<>4__this;
|
|
Material alphaBlitMaterial = animatedPlayerPuppetRenderTextureModel4.alphaBlitMaterial;
|
|
RenderTexture hnhchcagjaj3 = animatedPlayerPuppetRenderTextureModel4.HNHCHCAGJAJ;
|
|
Graphics.Blit(animatedPlayerPuppetRenderTextureModel4.OMKBOGAFIIB, hnhchcagjaj3, alphaBlitMaterial);
|
|
AnimatedPlayerPuppetRenderTextureModel animatedPlayerPuppetRenderTextureModel5 = this.<>4__this;
|
|
ManagedTexture adgpenejhbj = animatedPlayerPuppetRenderTextureModel5.ADGPENEJHBJ;
|
|
RenderTexture hnhchcagjaj4 = animatedPlayerPuppetRenderTextureModel5.HNHCHCAGJAJ;
|
|
adgpenejhbj.DPCIGLIJMPF(hnhchcagjaj4);
|
|
DABKFAIHBBP dabkfaihbbp = PEGGCEDHBOF.CCCDIOALPJK(this.<>4__this.ADGPENEJHBJ);
|
|
int num;
|
|
Action<string> action = new Action(num.LogError);
|
|
num = 0;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04003392 RID: 13202
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4003392")]
|
|
public AnimatedPlayerPuppetRenderTextureModel <>4__this;
|
|
|
|
// Token: 0x04003393 RID: 13203
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003393")]
|
|
public Vector3 cameraPosition;
|
|
|
|
// Token: 0x04003394 RID: 13204
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4003394")]
|
|
public Quaternion cameraRotation;
|
|
}
|
|
}
|
|
}
|