oh dear
This commit is contained in:
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F7C RID: 12156
|
||||
[Token(Token = "0x2002F7C")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class Cinematic : MonoBehaviour
|
||||
{
|
||||
// Token: 0x1700390D RID: 14605
|
||||
// (get) Token: 0x06014B6B RID: 84843 RVA: 0x004DA024 File Offset: 0x004D8224
|
||||
[Token(Token = "0x1700390D")]
|
||||
private static RuntimeAnimatorController BONEAKHDIFN
|
||||
{
|
||||
[Token(Token = "0x6014B6B")]
|
||||
[Address(RVA = "0x1434AC0", Offset = "0x14338C0", VA = "0x181434AC0")]
|
||||
get
|
||||
{
|
||||
RuntimeAnimatorController gkeeifbakmf = Cinematic.GKEEIFBAKMF;
|
||||
int num = 0;
|
||||
if (gkeeifbakmf == num)
|
||||
{
|
||||
global::UnityEngine.Object @object = Resources.Load(Cinematic.IHMJNIICJAB);
|
||||
if (@object == 0)
|
||||
{
|
||||
}
|
||||
Cinematic.GKEEIFBAKMF = @object;
|
||||
}
|
||||
return Cinematic.GKEEIFBAKMF;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700390E RID: 14606
|
||||
// (get) Token: 0x06014B6C RID: 84844 RVA: 0x004DA060 File Offset: 0x004D8260
|
||||
[Token(Token = "0x1700390E")]
|
||||
public bool BICMECLEPLM
|
||||
{
|
||||
[Token(Token = "0x6014B6C")]
|
||||
[Address(RVA = "0x14354A0", Offset = "0x14342A0", VA = "0x1814354A0")]
|
||||
get
|
||||
{
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
if (!(animator != num))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
Animator animator2 = this.animator;
|
||||
AnimatorStateInfo animatorStateInfo;
|
||||
float length = animatorStateInfo.m_Length;
|
||||
int loop = animatorStateInfo.m_Loop;
|
||||
string hmjjimacenl = Cinematic.HMJJIMACENL;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B6D RID: 84845 RVA: 0x004DA0B4 File Offset: 0x004D82B4
|
||||
[Token(Token = "0x6014B6D")]
|
||||
[Address(RVA = "0x1434C10", Offset = "0x1433A10", VA = "0x181434C10")]
|
||||
private void Awake()
|
||||
{
|
||||
CinematicBehaviour[] componentsInChildren = base.GetComponentsInChildren<CinematicBehaviour>(true);
|
||||
this.AFPKDDPIDHL = componentsInChildren;
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
if (animator == num)
|
||||
{
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.animator = component;
|
||||
}
|
||||
Animator animator2 = this.animator;
|
||||
int num2 = 0;
|
||||
if (animator2 != num2)
|
||||
{
|
||||
AnimationClip animationClip = this.cinematicAnimation;
|
||||
int num3 = 0;
|
||||
if (animationClip != num3 && !this.LADIENJLILJ())
|
||||
{
|
||||
AnimatorOverrideController animatorOverrideController = new AnimatorOverrideController(Cinematic.BONEAKHDIFN);
|
||||
AnimationClip animationClip2 = this.cinematicAnimation;
|
||||
string iaeipheedei = Cinematic.IAEIPHEEDEI;
|
||||
animatorOverrideController[iaeipheedei] = animationClip2;
|
||||
this.animator.runtimeAnimatorController = animatorOverrideController;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B6E RID: 84846 RVA: 0x004DA164 File Offset: 0x004D8364
|
||||
[Token(Token = "0x6014B6E")]
|
||||
[Address(RVA = "0x1434DD0", Offset = "0x1433BD0", VA = "0x181434DD0")]
|
||||
private void KDKOAEMGHGH()
|
||||
{
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
if (animator == num)
|
||||
{
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.animator = component;
|
||||
}
|
||||
Animator animator2 = this.animator;
|
||||
int num2 = 0;
|
||||
if (animator2 != num2)
|
||||
{
|
||||
AnimationClip animationClip = this.cinematicAnimation;
|
||||
int num3 = 0;
|
||||
if (animationClip != num3 && !this.LADIENJLILJ())
|
||||
{
|
||||
AnimatorOverrideController animatorOverrideController = new AnimatorOverrideController(Cinematic.BONEAKHDIFN);
|
||||
AnimationClip animationClip2 = this.cinematicAnimation;
|
||||
string iaeipheedei = Cinematic.IAEIPHEEDEI;
|
||||
animatorOverrideController[iaeipheedei] = animationClip2;
|
||||
this.animator.runtimeAnimatorController = animatorOverrideController;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B6F RID: 84847 RVA: 0x004DA204 File Offset: 0x004D8404
|
||||
[Token(Token = "0x6014B6F")]
|
||||
[Address(RVA = "0x1434F60", Offset = "0x1433D60", VA = "0x181434F60")]
|
||||
private bool LADIENJLILJ()
|
||||
{
|
||||
RuntimeAnimatorController runtimeAnimatorController = this.animator.runtimeAnimatorController;
|
||||
int num = 0;
|
||||
if (!(runtimeAnimatorController == num))
|
||||
{
|
||||
RuntimeAnimatorController runtimeAnimatorController2 = this.animator.runtimeAnimatorController;
|
||||
RuntimeAnimatorController runtimeAnimatorController3 = Cinematic.BONEAKHDIFN;
|
||||
if (!(runtimeAnimatorController2 == runtimeAnimatorController3))
|
||||
{
|
||||
RuntimeAnimatorController runtimeAnimatorController4 = this.animator.runtimeAnimatorController;
|
||||
if (runtimeAnimatorController4 == 0)
|
||||
{
|
||||
}
|
||||
int num2 = 0;
|
||||
if (!(runtimeAnimatorController4 == num2))
|
||||
{
|
||||
string iaeipheedei = Cinematic.IAEIPHEEDEI;
|
||||
AnimationClip animationClip = this.cinematicAnimation;
|
||||
AnimationClip animationClip2;
|
||||
if (!(animationClip2 != animationClip))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06014B70 RID: 84848 RVA: 0x004DA294 File Offset: 0x004D8494
|
||||
[Token(Token = "0x6014B70")]
|
||||
[Address(RVA = "0x1435180", Offset = "0x1433F80", VA = "0x181435180")]
|
||||
public void Play()
|
||||
{
|
||||
this.animator.Rebind();
|
||||
this.animator.enabled = true;
|
||||
CinematicBehaviour[] afpkddpidhl = this.AFPKDDPIDHL;
|
||||
int num = 0;
|
||||
if (num < afpkddpidhl.Length)
|
||||
{
|
||||
afpkddpidhl[num].gameObject.SetActive(true);
|
||||
CinematicBehaviour cinematicBehaviour = this.AFPKDDPIDHL[num];
|
||||
cinematicBehaviour.isPlaying = false;
|
||||
cinematicBehaviour.BDBPEDPLJOD();
|
||||
CinematicBehaviour[] afpkddpidhl2 = this.AFPKDDPIDHL;
|
||||
num++;
|
||||
}
|
||||
Animator animator = this.animator;
|
||||
int mjldfgpbpfk = Cinematic.MJLDFGPBPFK;
|
||||
animator.SetTrigger(mjldfgpbpfk);
|
||||
}
|
||||
|
||||
// Token: 0x06014B71 RID: 84849 RVA: 0x004DA320 File Offset: 0x004D8520
|
||||
[Token(Token = "0x6014B71")]
|
||||
[Address(RVA = "0x1435300", Offset = "0x1434100", VA = "0x181435300")]
|
||||
public void Stop()
|
||||
{
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
animator.enabled = num != 0;
|
||||
CinematicBehaviour[] afpkddpidhl = this.AFPKDDPIDHL;
|
||||
int num2 = 0;
|
||||
if (num2 < afpkddpidhl.Length)
|
||||
{
|
||||
CinematicBehaviour cinematicBehaviour = afpkddpidhl[num2];
|
||||
cinematicBehaviour.isPlaying = false;
|
||||
cinematicBehaviour.BDBPEDPLJOD();
|
||||
GameObject gameObject = this.AFPKDDPIDHL[num2].gameObject;
|
||||
int num3 = 0;
|
||||
gameObject.SetActive(num3 != 0);
|
||||
CinematicBehaviour[] afpkddpidhl2 = this.AFPKDDPIDHL;
|
||||
num2++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B72 RID: 84850 RVA: 0x004DA398 File Offset: 0x004D8598
|
||||
[Token(Token = "0x6014B72")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public Cinematic()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DB28 RID: 56104
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400DB28")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x0400DB29 RID: 56105
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DB29")]
|
||||
[SerializeField]
|
||||
private AnimationClip cinematicAnimation;
|
||||
|
||||
// Token: 0x0400DB2A RID: 56106
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400DB2A")]
|
||||
private CinematicBehaviour[] AFPKDDPIDHL;
|
||||
|
||||
// Token: 0x0400DB2B RID: 56107
|
||||
[Token(Token = "0x400DB2B")]
|
||||
private static readonly int MJLDFGPBPFK = Animator.StringToHash("Play");
|
||||
|
||||
// Token: 0x0400DB2C RID: 56108
|
||||
[Token(Token = "0x400DB2C")]
|
||||
private static readonly string IHMJNIICJAB = "CinematicTemplateController";
|
||||
|
||||
// Token: 0x0400DB2D RID: 56109
|
||||
[Token(Token = "0x400DB2D")]
|
||||
private static readonly string IAEIPHEEDEI = "CinematicTemplateAnimation";
|
||||
|
||||
// Token: 0x0400DB2E RID: 56110
|
||||
[Token(Token = "0x400DB2E")]
|
||||
private static readonly string HMJJIMACENL = "Cinematic";
|
||||
|
||||
// Token: 0x0400DB2F RID: 56111
|
||||
[Token(Token = "0x400DB2F")]
|
||||
private static RuntimeAnimatorController GKEEIFBAKMF;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F7D RID: 12157
|
||||
[Token(Token = "0x2002F7D")]
|
||||
public class CinematicAnimator : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014B74 RID: 84852 RVA: 0x004DA3E8 File Offset: 0x004D85E8
|
||||
[Token(Token = "0x6014B74")]
|
||||
[Address(RVA = "0x1433B40", Offset = "0x1432940", VA = "0x181433B40", Slot = "4")]
|
||||
protected override void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.LDOJFIEANFB = component;
|
||||
}
|
||||
|
||||
// Token: 0x06014B75 RID: 84853 RVA: 0x004DA40C File Offset: 0x004D860C
|
||||
[Token(Token = "0x6014B75")]
|
||||
[Address(RVA = "0x1433B90", Offset = "0x1432990", VA = "0x181433B90", Slot = "8")]
|
||||
protected override void BDBPEDPLJOD()
|
||||
{
|
||||
Animator ldojfieanfb = this.LDOJFIEANFB;
|
||||
int num = 0;
|
||||
if (ldojfieanfb != num)
|
||||
{
|
||||
Animator ldojfieanfb2 = this.LDOJFIEANFB;
|
||||
int hkmgjgdmiil = CinematicAnimator.HKMGJGDMIIL;
|
||||
ldojfieanfb2.DOMIGIEBFCF(hkmgjgdmiil, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B76 RID: 84854 RVA: 0x004DA444 File Offset: 0x004D8644
|
||||
[Token(Token = "0x6014B76")]
|
||||
[Address(RVA = "0x1433C40", Offset = "0x1432A40", VA = "0x181433C40", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
Animator ldojfieanfb = this.LDOJFIEANFB;
|
||||
int num = 0;
|
||||
if (ldojfieanfb != num)
|
||||
{
|
||||
Animator ldojfieanfb2 = this.LDOJFIEANFB;
|
||||
int num2 = 0;
|
||||
int hkmgjgdmiil = CinematicAnimator.HKMGJGDMIIL;
|
||||
ldojfieanfb2.DOMIGIEBFCF(hkmgjgdmiil, num2 != 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B77 RID: 84855 RVA: 0x004DA480 File Offset: 0x004D8680
|
||||
[Token(Token = "0x6014B77")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public CinematicAnimator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DB30 RID: 56112
|
||||
[Token(Token = "0x400DB30")]
|
||||
private static readonly int HKMGJGDMIIL = Animator.StringToHash("Play");
|
||||
|
||||
// Token: 0x0400DB31 RID: 56113
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DB31")]
|
||||
private Animator LDOJFIEANFB;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F7E RID: 12158
|
||||
[Token(Token = "0x2002F7E")]
|
||||
public class CinematicAudio : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014B79 RID: 84857 RVA: 0x004DA4B0 File Offset: 0x004D86B0
|
||||
[Token(Token = "0x6014B79")]
|
||||
[Address(RVA = "0x1433D40", Offset = "0x1432B40", VA = "0x181433D40", Slot = "8")]
|
||||
protected override void BDBPEDPLJOD()
|
||||
{
|
||||
this.FDMCKIAMNIN();
|
||||
bool flag = this.isLooping;
|
||||
RecRoomAudioClip recRoomAudioClip = this.audioClip;
|
||||
if (!this.is2D)
|
||||
{
|
||||
Transform transform = base.transform;
|
||||
if (!flag)
|
||||
{
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
SFXAudioSource sfxaudioSource = AudioManager.Play3DSFX(recRoomAudioClip, transform, num2, num);
|
||||
this.FLLDIMMNCOM = sfxaudioSource;
|
||||
return;
|
||||
}
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
SFXAudioSource sfxaudioSource2 = AudioManager.StartLooping3DSFX(recRoomAudioClip, transform, num4, num3);
|
||||
}
|
||||
if (!flag)
|
||||
{
|
||||
int num5 = 0;
|
||||
SFXAudioSource sfxaudioSource3 = AudioManager.Play2DSFX(recRoomAudioClip, num5);
|
||||
this.FLLDIMMNCOM = sfxaudioSource3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B7A RID: 84858 RVA: 0x004DA52C File Offset: 0x004D872C
|
||||
[Token(Token = "0x6014B7A")]
|
||||
[Address(RVA = "0x1433F40", Offset = "0x1432D40", VA = "0x181433F40", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
this.FDMCKIAMNIN();
|
||||
}
|
||||
|
||||
// Token: 0x06014B7B RID: 84859 RVA: 0x004DA540 File Offset: 0x004D8740
|
||||
[Token(Token = "0x6014B7B")]
|
||||
[Address(RVA = "0x1433EA0", Offset = "0x1432CA0", VA = "0x181433EA0")]
|
||||
private void FDMCKIAMNIN()
|
||||
{
|
||||
SFXAudioSource flldimmncom = this.FLLDIMMNCOM;
|
||||
int num = 0;
|
||||
if (flldimmncom != num)
|
||||
{
|
||||
AudioManager.StopLoopingSFX(this.FLLDIMMNCOM);
|
||||
this.FLLDIMMNCOM = (ulong)0L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B7C RID: 84860 RVA: 0x004DA574 File Offset: 0x004D8774
|
||||
[Token(Token = "0x6014B7C")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public CinematicAudio()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DB32 RID: 56114
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DB32")]
|
||||
[SerializeField]
|
||||
[Header("Configuration")]
|
||||
private bool is2D;
|
||||
|
||||
// Token: 0x0400DB33 RID: 56115
|
||||
[FieldOffset(Offset = "0x21")]
|
||||
[Token(Token = "0x400DB33")]
|
||||
[SerializeField]
|
||||
private bool isLooping;
|
||||
|
||||
// Token: 0x0400DB34 RID: 56116
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400DB34")]
|
||||
[SerializeField]
|
||||
private RecRoomAudioClip audioClip;
|
||||
|
||||
// Token: 0x0400DB35 RID: 56117
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400DB35")]
|
||||
private SFXAudioSource FLLDIMMNCOM;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F7F RID: 12159
|
||||
[Token(Token = "0x2002F7F")]
|
||||
public abstract class CinematicBehaviour : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06014B7D RID: 84861 RVA: 0x004DA588 File Offset: 0x004D8788
|
||||
[Token(Token = "0x6014B7D")]
|
||||
[Address(RVA = "0x1433F50", Offset = "0x1432D50", VA = "0x181433F50", Slot = "4")]
|
||||
protected virtual void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
}
|
||||
|
||||
// Token: 0x06014B7E RID: 84862 RVA: 0x004DA59C File Offset: 0x004D879C
|
||||
[Token(Token = "0x6014B7E")]
|
||||
[Address(RVA = "0x51A270", Offset = "0x519070", VA = "0x18051A270", Slot = "5")]
|
||||
protected virtual void Start()
|
||||
{
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x06014B7F RID: 84863 RVA: 0x004DA5B0 File Offset: 0x004D87B0
|
||||
[Token(Token = "0x6014B7F")]
|
||||
[Address(RVA = "0x1433F60", Offset = "0x1432D60", VA = "0x181433F60", Slot = "6")]
|
||||
protected virtual void OnDisable()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x06014B80 RID: 84864 RVA: 0x004DA5CC File Offset: 0x004D87CC
|
||||
[Token(Token = "0x6014B80")]
|
||||
[Address(RVA = "0x1433F80", Offset = "0x1432D80", VA = "0x181433F80", Slot = "7")]
|
||||
protected virtual void Update()
|
||||
{
|
||||
bool flag = this.isPlaying;
|
||||
if (!this.KHKPLMAMFHI)
|
||||
{
|
||||
if (flag)
|
||||
{
|
||||
this.Update();
|
||||
bool flag2 = this.isPlaying;
|
||||
this.KHKPLMAMFHI = flag2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (!flag)
|
||||
{
|
||||
this.BDBPEDPLJOD();
|
||||
bool flag3 = this.isPlaying;
|
||||
this.KHKPLMAMFHI = flag3;
|
||||
return;
|
||||
}
|
||||
bool flag4 = this.isPlaying;
|
||||
this.KHKPLMAMFHI = flag4;
|
||||
}
|
||||
|
||||
// Token: 0x06014B81 RID: 84865 RVA: 0x004DA62C File Offset: 0x004D882C
|
||||
[Token(Token = "0x6014B81")]
|
||||
[Address(RVA = "0x1433F60", Offset = "0x1432D60", VA = "0x181433F60")]
|
||||
public void Reset()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x06014B82 RID: 84866
|
||||
[Token(Token = "0x6014B82")]
|
||||
[Address(Slot = "8")]
|
||||
protected abstract void BDBPEDPLJOD();
|
||||
|
||||
// Token: 0x06014B83 RID: 84867
|
||||
[Token(Token = "0x6014B83")]
|
||||
[Address(Slot = "9")]
|
||||
protected abstract void PHPEJNODMHE();
|
||||
|
||||
// Token: 0x06014B84 RID: 84868 RVA: 0x004DA648 File Offset: 0x004D8848
|
||||
[Token(Token = "0x6014B84")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
protected CinematicBehaviour()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DB36 RID: 56118
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400DB36")]
|
||||
[SerializeField]
|
||||
[Header("Animation Parameters")]
|
||||
private bool isPlaying;
|
||||
|
||||
// Token: 0x0400DB37 RID: 56119
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x400DB37")]
|
||||
private bool KHKPLMAMFHI;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F80 RID: 12160
|
||||
[Token(Token = "0x2002F80")]
|
||||
public class CinematicCameraShake : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014B85 RID: 84869 RVA: 0x004DA65C File Offset: 0x004D885C
|
||||
[Token(Token = "0x6014B85")]
|
||||
[Address(RVA = "0x1433FF0", Offset = "0x1432DF0", VA = "0x181433FF0", Slot = "8")]
|
||||
protected override void BDBPEDPLJOD()
|
||||
{
|
||||
Player <EGKJPJKLEAI>k__BackingField = Player.<EGKJPJKLEAI>k__BackingField;
|
||||
int num = 0;
|
||||
if (<EGKJPJKLEAI>k__BackingField != num)
|
||||
{
|
||||
RigidbodyEx rigidbodyEx = <EGKJPJKLEAI>k__BackingField.head.rigidbodyEx;
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
Transform transform = base.transform;
|
||||
Vector3 vector2;
|
||||
float z2 = vector2.z;
|
||||
Vector3 vector3;
|
||||
float z3 = vector3.z;
|
||||
float num2 = this.outerRadius;
|
||||
float num3 = Mathf.InverseLerp(num3, num2, num3);
|
||||
float num4 = Mathf.SmoothStep((float)0, 1f, num3);
|
||||
float frequency = this.cameraShake.Frequency;
|
||||
DGENAKIGBIB.CameraShakeConfig cameraShakeConfig;
|
||||
float frequency2 = cameraShakeConfig.Frequency;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B86 RID: 84870 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6014B86")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06014B87 RID: 84871 RVA: 0x004DA6EC File Offset: 0x004D88EC
|
||||
[Token(Token = "0x6014B87")]
|
||||
[Address(RVA = "0x14342A0", Offset = "0x14330A0", VA = "0x1814342A0")]
|
||||
public CinematicCameraShake()
|
||||
{
|
||||
float frequency = DGENAKIGBIB.CameraShakeConfig.DefaultMediumShake.Frequency;
|
||||
this.cameraShake.Frequency = frequency;
|
||||
this.innerRadius = 5f;
|
||||
this.outerRadius = 15f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400DB38 RID: 56120
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DB38")]
|
||||
[SerializeField]
|
||||
[Header("Configuration")]
|
||||
private DGENAKIGBIB.CameraShakeConfig cameraShake;
|
||||
|
||||
// Token: 0x0400DB39 RID: 56121
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x400DB39")]
|
||||
[SerializeField]
|
||||
private float innerRadius;
|
||||
|
||||
// Token: 0x0400DB3A RID: 56122
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400DB3A")]
|
||||
[SerializeField]
|
||||
private float outerRadius;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F81 RID: 12161
|
||||
[Token(Token = "0x2002F81")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(ParticleSystem))]
|
||||
public class CinematicParticleSystem : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014B88 RID: 84872 RVA: 0x004DA72C File Offset: 0x004D892C
|
||||
[Token(Token = "0x6014B88")]
|
||||
[Address(RVA = "0x14342F0", Offset = "0x14330F0", VA = "0x1814342F0", Slot = "4")]
|
||||
protected override void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
ParticleSystem component = base.GetComponent<ParticleSystem>();
|
||||
this.PCDGMMAKHPA = component;
|
||||
}
|
||||
|
||||
// Token: 0x06014B89 RID: 84873 RVA: 0x004DA750 File Offset: 0x004D8950
|
||||
[Token(Token = "0x6014B89")]
|
||||
[Address(RVA = "0x1434340", Offset = "0x1433140", VA = "0x181434340", Slot = "8")]
|
||||
protected override void BDBPEDPLJOD()
|
||||
{
|
||||
this.PCDGMMAKHPA.Play();
|
||||
}
|
||||
|
||||
// Token: 0x06014B8A RID: 84874 RVA: 0x004DA770 File Offset: 0x004D8970
|
||||
[Token(Token = "0x6014B8A")]
|
||||
[Address(RVA = "0x1434360", Offset = "0x1433160", VA = "0x181434360", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
this.PCDGMMAKHPA.Stop();
|
||||
}
|
||||
|
||||
// Token: 0x06014B8B RID: 84875 RVA: 0x004DA790 File Offset: 0x004D8990
|
||||
[Token(Token = "0x6014B8B")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public CinematicParticleSystem()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DB3B RID: 56123
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DB3B")]
|
||||
private ParticleSystem PCDGMMAKHPA;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F82 RID: 12162
|
||||
[Token(Token = "0x2002F82")]
|
||||
public class CinematicVideoPlayer : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014B8C RID: 84876 RVA: 0x004DA7A4 File Offset: 0x004D89A4
|
||||
[Token(Token = "0x6014B8C")]
|
||||
[Address(RVA = "0x1434380", Offset = "0x1433180", VA = "0x181434380", Slot = "4")]
|
||||
protected override void Awake()
|
||||
{
|
||||
VideoPlayer videoPlayer = this.videoPlayer;
|
||||
this.isPlaying = false;
|
||||
VideoClip clip = videoPlayer.clip;
|
||||
int num = 0;
|
||||
if (clip == num && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
||||
{
|
||||
VideoPlayer videoPlayer2 = this.videoPlayer;
|
||||
string streamingAssetsPath = Application.streamingAssetsPath;
|
||||
string text = this.streamingAssetsMoviePath;
|
||||
string text2 = string.Format("{0}/{1}", streamingAssetsPath, text);
|
||||
videoPlayer2.url = text2;
|
||||
}
|
||||
if (this.videoPlayer.audioOutputMode == VideoAudioOutputMode.AudioSource)
|
||||
{
|
||||
AudioSource audioSource = this.audioSource;
|
||||
int num2 = 0;
|
||||
if (audioSource != num2)
|
||||
{
|
||||
VideoPlayer videoPlayer3 = this.videoPlayer;
|
||||
int num3 = 0;
|
||||
videoPlayer3.EnableAudioTrack((ushort)num3, true);
|
||||
VideoPlayer videoPlayer4 = this.videoPlayer;
|
||||
AudioSource audioSource2 = this.audioSource;
|
||||
int num4 = 0;
|
||||
videoPlayer4.SetTargetAudioSource((ushort)num4, audioSource2);
|
||||
VideoPlayer videoPlayer5 = this.videoPlayer;
|
||||
}
|
||||
}
|
||||
this.videoPlayer.Prepare();
|
||||
}
|
||||
|
||||
// Token: 0x06014B8D RID: 84877 RVA: 0x004DA884 File Offset: 0x004D8A84
|
||||
[Token(Token = "0x6014B8D")]
|
||||
[Address(RVA = "0x14348D0", Offset = "0x14336D0", VA = "0x1814348D0", Slot = "5")]
|
||||
protected override void Start()
|
||||
{
|
||||
this.BDBPEDPLJOD();
|
||||
if (this.useAntiTamperHash)
|
||||
{
|
||||
VideoClip clip = this.videoPlayer.clip;
|
||||
int num = 0;
|
||||
if (clip == num && !string.IsNullOrEmpty(this.streamingAssetsMoviePath))
|
||||
{
|
||||
string streamingAssetsPath = Application.streamingAssetsPath;
|
||||
string text = this.streamingAssetsMoviePath;
|
||||
string text2 = string.Format("{0}/{1}", streamingAssetsPath, text);
|
||||
string text3 = this.antiTamperHash;
|
||||
if (text2 == 0)
|
||||
{
|
||||
string text4 = ABDNCGCKIDC.EKMIBHHBDNO(text2);
|
||||
string text5 = this.antiTamperHash;
|
||||
bool flag = text4 != text5;
|
||||
if (flag)
|
||||
{
|
||||
string text6;
|
||||
Debug.LogWarning(text6);
|
||||
this.GCPANLLFEDJ = true;
|
||||
CFLMJLFBOKH.PDMJKFBIEGI(this.streamingAssetsMoviePath);
|
||||
return;
|
||||
}
|
||||
if (this.autoPlay != flag)
|
||||
{
|
||||
this.Update();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B8E RID: 84878 RVA: 0x004DA948 File Offset: 0x004D8B48
|
||||
[Token(Token = "0x6014B8E")]
|
||||
[Address(RVA = "0x1434630", Offset = "0x1433430", VA = "0x181434630")]
|
||||
private void OnEnable()
|
||||
{
|
||||
if (this.HNIKJLNICGN)
|
||||
{
|
||||
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B8F RID: 84879 RVA: 0x004DA968 File Offset: 0x004D8B68
|
||||
[Token(Token = "0x6014B8F")]
|
||||
[Address(RVA = "0x14347F0", Offset = "0x14335F0", VA = "0x1814347F0")]
|
||||
public void PlayStreamingVideo(string IDJBCFJGMNH)
|
||||
{
|
||||
this.videoPlayer.Stop();
|
||||
VideoPlayer videoPlayer = this.videoPlayer;
|
||||
string streamingAssetsPath = Application.streamingAssetsPath;
|
||||
string text = string.Format("{0}/{1}", streamingAssetsPath, IDJBCFJGMNH);
|
||||
videoPlayer.url = text;
|
||||
this.videoPlayer.Play();
|
||||
Debug.Log("Playing: " + IDJBCFJGMNH);
|
||||
}
|
||||
|
||||
// Token: 0x1700390F RID: 14607
|
||||
// (get) Token: 0x06014B90 RID: 84880 RVA: 0x004DA9C4 File Offset: 0x004D8BC4
|
||||
[Token(Token = "0x1700390F")]
|
||||
public bool MDOLKDKPOGF
|
||||
{
|
||||
[Token(Token = "0x6014B90")]
|
||||
[Address(RVA = "0x1434AA0", Offset = "0x14338A0", VA = "0x181434AA0")]
|
||||
get
|
||||
{
|
||||
return this.videoPlayer.isPlaying;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B91 RID: 84881 RVA: 0x004DA9E4 File Offset: 0x004D8BE4
|
||||
[Token(Token = "0x6014B91")]
|
||||
[Address(RVA = "0x5C2230", Offset = "0x5C1030", VA = "0x1805C2230")]
|
||||
public void PlayVideo()
|
||||
{
|
||||
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
||||
}
|
||||
|
||||
// Token: 0x06014B92 RID: 84882 RVA: 0x004DA9F8 File Offset: 0x004D8BF8
|
||||
[Token(Token = "0x6014B92")]
|
||||
[Address(RVA = "0x51A270", Offset = "0x519070", VA = "0x18051A270")]
|
||||
public void StopVideo()
|
||||
{
|
||||
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
||||
}
|
||||
|
||||
// Token: 0x06014B93 RID: 84883 RVA: 0x004DAA0C File Offset: 0x004D8C0C
|
||||
[Token(Token = "0x6014B93")]
|
||||
[Address(RVA = "0x1434720", Offset = "0x1433520", VA = "0x181434720")]
|
||||
public void PauseVideo()
|
||||
{
|
||||
if (!this.GCPANLLFEDJ)
|
||||
{
|
||||
VideoPlayer videoPlayer = this.videoPlayer;
|
||||
int num = 0;
|
||||
if (videoPlayer != num)
|
||||
{
|
||||
this.videoPlayer.Pause();
|
||||
}
|
||||
AudioSource audioSource = this.audioSource;
|
||||
int num2 = 0;
|
||||
if (audioSource != num2)
|
||||
{
|
||||
this.audioSource.Pause();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B94 RID: 84884 RVA: 0x004DAA64 File Offset: 0x004D8C64
|
||||
[Token(Token = "0x6014B94")]
|
||||
[Address(RVA = "0x1434510", Offset = "0x1433310", VA = "0x181434510", Slot = "8")]
|
||||
protected override void BDBPEDPLJOD()
|
||||
{
|
||||
if (!this.GCPANLLFEDJ)
|
||||
{
|
||||
VideoPlayer videoPlayer = this.videoPlayer;
|
||||
this.HNIKJLNICGN = true;
|
||||
int num = 0;
|
||||
if (videoPlayer != num)
|
||||
{
|
||||
this.videoPlayer.Play();
|
||||
}
|
||||
AudioSource audioSource = this.audioSource;
|
||||
int num2 = 0;
|
||||
if (audioSource != num2)
|
||||
{
|
||||
this.audioSource.Play();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B95 RID: 84885 RVA: 0x004DAAC4 File Offset: 0x004D8CC4
|
||||
[Token(Token = "0x6014B95")]
|
||||
[Address(RVA = "0x1434650", Offset = "0x1433450", VA = "0x181434650", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
if (!this.GCPANLLFEDJ)
|
||||
{
|
||||
VideoPlayer videoPlayer = this.videoPlayer;
|
||||
int num = 0;
|
||||
if (videoPlayer != num)
|
||||
{
|
||||
this.videoPlayer.Stop();
|
||||
}
|
||||
AudioSource audioSource = this.audioSource;
|
||||
int num2 = 0;
|
||||
if (audioSource != num2)
|
||||
{
|
||||
this.audioSource.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B96 RID: 84886 RVA: 0x004DAB1C File Offset: 0x004D8D1C
|
||||
[Token(Token = "0x6014B96")]
|
||||
[Address(RVA = "0x14345E0", Offset = "0x14333E0", VA = "0x1814345E0")]
|
||||
private string FKEEDFICEHJ()
|
||||
{
|
||||
string streamingAssetsPath = Application.streamingAssetsPath;
|
||||
string text = this.streamingAssetsMoviePath;
|
||||
return string.Format("{0}/{1}", streamingAssetsPath, text);
|
||||
}
|
||||
|
||||
// Token: 0x06014B97 RID: 84887 RVA: 0x004DAB44 File Offset: 0x004D8D44
|
||||
[Token(Token = "0x6014B97")]
|
||||
[Address(RVA = "0x1434A80", Offset = "0x1433880", VA = "0x181434A80")]
|
||||
public CinematicVideoPlayer()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DB3C RID: 56124
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DB3C")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
||||
private VideoPlayer videoPlayer;
|
||||
|
||||
// Token: 0x0400DB3D RID: 56125
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400DB3D")]
|
||||
[SerializeField]
|
||||
private AudioSource audioSource;
|
||||
|
||||
// Token: 0x0400DB3E RID: 56126
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400DB3E")]
|
||||
public string streamingAssetsMoviePath;
|
||||
|
||||
// Token: 0x0400DB3F RID: 56127
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400DB3F")]
|
||||
[SerializeField]
|
||||
private bool autoPlay;
|
||||
|
||||
// Token: 0x0400DB40 RID: 56128
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x400DB40")]
|
||||
[Header("PS4-specific Parameters")]
|
||||
public int renderWidth = (int)((ulong)1280L);
|
||||
|
||||
// Token: 0x0400DB41 RID: 56129
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400DB41")]
|
||||
public int renderHeight = (int)((ulong)720L);
|
||||
|
||||
// Token: 0x0400DB42 RID: 56130
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400DB42")]
|
||||
public Renderer playTarget;
|
||||
|
||||
// Token: 0x0400DB43 RID: 56131
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400DB43")]
|
||||
[HideInInspector]
|
||||
[SerializeField]
|
||||
[Header("Anti Tamper")]
|
||||
private bool useAntiTamperHash = true;
|
||||
|
||||
// Token: 0x0400DB44 RID: 56132
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400DB44")]
|
||||
[HideInInspector]
|
||||
[SerializeField]
|
||||
[Tooltip("Generate this when you setup the streamingAssetsMoviePath. This is so the users dont put a new file under here and mess with what plays in the game.")]
|
||||
private string antiTamperHash;
|
||||
|
||||
// Token: 0x0400DB45 RID: 56133
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400DB45")]
|
||||
[SerializeField]
|
||||
[HideInInspector]
|
||||
private string hashedStreamingAssetsMoviePath;
|
||||
|
||||
// Token: 0x0400DB46 RID: 56134
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400DB46")]
|
||||
private bool GCPANLLFEDJ;
|
||||
|
||||
// Token: 0x0400DB47 RID: 56135
|
||||
[FieldOffset(Offset = "0x69")]
|
||||
[Token(Token = "0x400DB47")]
|
||||
private bool HNIKJLNICGN;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user