scripts
This commit is contained in:
@@ -0,0 +1,245 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002A93 RID: 10899
|
||||
[Token(Token = "0x2002A93")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
[StructLayout(3)]
|
||||
public class Cinematic : MonoBehaviour
|
||||
{
|
||||
// Token: 0x170032E4 RID: 13028
|
||||
// (get) Token: 0x06013128 RID: 78120 RVA: 0x00494F40 File Offset: 0x00493140
|
||||
[Token(Token = "0x170032E4")]
|
||||
private static RuntimeAnimatorController BONEAKHDIFN
|
||||
{
|
||||
[Token(Token = "0x6013128")]
|
||||
[Address(RVA = "0x185AB20", Offset = "0x1859520", VA = "0x18185AB20")]
|
||||
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: 0x170032E5 RID: 13029
|
||||
// (get) Token: 0x06013129 RID: 78121 RVA: 0x00494F7C File Offset: 0x0049317C
|
||||
[Token(Token = "0x170032E5")]
|
||||
public bool BICMECLEPLM
|
||||
{
|
||||
[Token(Token = "0x6013129")]
|
||||
[Address(RVA = "0x185B500", Offset = "0x1859F00", VA = "0x18185B500")]
|
||||
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;
|
||||
throw new MissingMethodException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601312A RID: 78122 RVA: 0x00494FCC File Offset: 0x004931CC
|
||||
[Token(Token = "0x601312A")]
|
||||
[Address(RVA = "0x185AC70", Offset = "0x1859670", VA = "0x18185AC70")]
|
||||
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: 0x0601312B RID: 78123 RVA: 0x0049507C File Offset: 0x0049327C
|
||||
[Token(Token = "0x601312B")]
|
||||
[Address(RVA = "0x185AE30", Offset = "0x1859830", VA = "0x18185AE30")]
|
||||
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: 0x0601312C RID: 78124 RVA: 0x0049511C File Offset: 0x0049331C
|
||||
[Token(Token = "0x601312C")]
|
||||
[Address(RVA = "0x185AFC0", Offset = "0x18599C0", VA = "0x18185AFC0")]
|
||||
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: 0x0601312D RID: 78125 RVA: 0x004951AC File Offset: 0x004933AC
|
||||
[Token(Token = "0x601312D")]
|
||||
[Address(RVA = "0x185B1E0", Offset = "0x1859BE0", VA = "0x18185B1E0")]
|
||||
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: 0x0601312E RID: 78126 RVA: 0x00495238 File Offset: 0x00493438
|
||||
[Token(Token = "0x601312E")]
|
||||
[Address(RVA = "0x185B360", Offset = "0x1859D60", VA = "0x18185B360")]
|
||||
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: 0x0601312F RID: 78127 RVA: 0x004952B0 File Offset: 0x004934B0
|
||||
[Token(Token = "0x601312F")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
public Cinematic()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400CF18 RID: 53016
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400CF18")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x0400CF19 RID: 53017
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400CF19")]
|
||||
[SerializeField]
|
||||
private AnimationClip cinematicAnimation;
|
||||
|
||||
// Token: 0x0400CF1A RID: 53018
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400CF1A")]
|
||||
private CinematicBehaviour[] AFPKDDPIDHL;
|
||||
|
||||
// Token: 0x0400CF1B RID: 53019
|
||||
[Token(Token = "0x400CF1B")]
|
||||
private static readonly int MJLDFGPBPFK = Animator.StringToHash("Play");
|
||||
|
||||
// Token: 0x0400CF1C RID: 53020
|
||||
[Token(Token = "0x400CF1C")]
|
||||
private static readonly string IHMJNIICJAB = "CinematicTemplateController";
|
||||
|
||||
// Token: 0x0400CF1D RID: 53021
|
||||
[Token(Token = "0x400CF1D")]
|
||||
private static readonly string IAEIPHEEDEI = "CinematicTemplateAnimation";
|
||||
|
||||
// Token: 0x0400CF1E RID: 53022
|
||||
[Token(Token = "0x400CF1E")]
|
||||
private static readonly string HMJJIMACENL = "Cinematic";
|
||||
|
||||
// Token: 0x0400CF1F RID: 53023
|
||||
[Token(Token = "0x400CF1F")]
|
||||
private static RuntimeAnimatorController GKEEIFBAKMF;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002A94 RID: 10900
|
||||
[Token(Token = "0x2002A94")]
|
||||
[StructLayout(3)]
|
||||
public class CinematicAnimator : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06013131 RID: 78129 RVA: 0x00495300 File Offset: 0x00493500
|
||||
[Token(Token = "0x6013131")]
|
||||
[Address(RVA = "0x1859BA0", Offset = "0x18585A0", VA = "0x181859BA0", Slot = "4")]
|
||||
protected override void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.LDOJFIEANFB = component;
|
||||
}
|
||||
|
||||
// Token: 0x06013132 RID: 78130 RVA: 0x00495324 File Offset: 0x00493524
|
||||
[Token(Token = "0x6013132")]
|
||||
[Address(RVA = "0x1859BF0", Offset = "0x18585F0", VA = "0x181859BF0", 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.SetBoolIfActive(hkmgjgdmiil, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013133 RID: 78131 RVA: 0x0049535C File Offset: 0x0049355C
|
||||
[Token(Token = "0x6013133")]
|
||||
[Address(RVA = "0x1859CA0", Offset = "0x18586A0", VA = "0x181859CA0", 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.SetBoolIfActive(hkmgjgdmiil, num2 != 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013134 RID: 78132 RVA: 0x00495398 File Offset: 0x00493598
|
||||
[Token(Token = "0x6013134")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
public CinematicAnimator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400CF20 RID: 53024
|
||||
[Token(Token = "0x400CF20")]
|
||||
private static readonly int HKMGJGDMIIL = Animator.StringToHash("Play");
|
||||
|
||||
// Token: 0x0400CF21 RID: 53025
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400CF21")]
|
||||
private Animator LDOJFIEANFB;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002A95 RID: 10901
|
||||
[Token(Token = "0x2002A95")]
|
||||
[StructLayout(3)]
|
||||
public class CinematicAudio : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06013136 RID: 78134 RVA: 0x004953C8 File Offset: 0x004935C8
|
||||
[Token(Token = "0x6013136")]
|
||||
[Address(RVA = "0x1859DA0", Offset = "0x18587A0", VA = "0x181859DA0", 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: 0x06013137 RID: 78135 RVA: 0x00495444 File Offset: 0x00493644
|
||||
[Token(Token = "0x6013137")]
|
||||
[Address(RVA = "0x1859FA0", Offset = "0x18589A0", VA = "0x181859FA0", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
this.FDMCKIAMNIN();
|
||||
}
|
||||
|
||||
// Token: 0x06013138 RID: 78136 RVA: 0x00495458 File Offset: 0x00493658
|
||||
[Token(Token = "0x6013138")]
|
||||
[Address(RVA = "0x1859F00", Offset = "0x1858900", VA = "0x181859F00")]
|
||||
private void FDMCKIAMNIN()
|
||||
{
|
||||
SFXAudioSource flldimmncom = this.FLLDIMMNCOM;
|
||||
int num = 0;
|
||||
if (flldimmncom != num)
|
||||
{
|
||||
AudioManager.StopLoopingSFX(this.FLLDIMMNCOM);
|
||||
this.FLLDIMMNCOM = (ulong)0L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013139 RID: 78137 RVA: 0x0049548C File Offset: 0x0049368C
|
||||
[Token(Token = "0x6013139")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
public CinematicAudio()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400CF22 RID: 53026
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400CF22")]
|
||||
[SerializeField]
|
||||
[Header("Configuration")]
|
||||
private bool is2D;
|
||||
|
||||
// Token: 0x0400CF23 RID: 53027
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x21")]
|
||||
[Token(Token = "0x400CF23")]
|
||||
[SerializeField]
|
||||
private bool isLooping;
|
||||
|
||||
// Token: 0x0400CF24 RID: 53028
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400CF24")]
|
||||
[SerializeField]
|
||||
private RecRoomAudioClip audioClip;
|
||||
|
||||
// Token: 0x0400CF25 RID: 53029
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400CF25")]
|
||||
private SFXAudioSource FLLDIMMNCOM;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002A96 RID: 10902
|
||||
[Token(Token = "0x2002A96")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CinematicBehaviour : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0601313A RID: 78138 RVA: 0x004954A0 File Offset: 0x004936A0
|
||||
[Token(Token = "0x601313A")]
|
||||
[Address(RVA = "0x1859FB0", Offset = "0x18589B0", VA = "0x181859FB0", Slot = "4")]
|
||||
protected virtual void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
}
|
||||
|
||||
// Token: 0x0601313B RID: 78139 RVA: 0x004954B4 File Offset: 0x004936B4
|
||||
[Token(Token = "0x601313B")]
|
||||
[Address(RVA = "0x9E3670", Offset = "0x9E2070", VA = "0x1809E3670", Slot = "5")]
|
||||
protected virtual void Start()
|
||||
{
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x0601313C RID: 78140 RVA: 0x004954C8 File Offset: 0x004936C8
|
||||
[Token(Token = "0x601313C")]
|
||||
[Address(RVA = "0x1859FC0", Offset = "0x18589C0", VA = "0x181859FC0", Slot = "6")]
|
||||
protected virtual void OnDisable()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x0601313D RID: 78141 RVA: 0x004954E4 File Offset: 0x004936E4
|
||||
[Token(Token = "0x601313D")]
|
||||
[Address(RVA = "0x1859FE0", Offset = "0x18589E0", VA = "0x181859FE0", 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: 0x0601313E RID: 78142 RVA: 0x00495544 File Offset: 0x00493744
|
||||
[Token(Token = "0x601313E")]
|
||||
[Address(RVA = "0x1859FC0", Offset = "0x18589C0", VA = "0x181859FC0")]
|
||||
public void Reset()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x0601313F RID: 78143
|
||||
[Token(Token = "0x601313F")]
|
||||
[Address(Slot = "8")]
|
||||
protected abstract void BDBPEDPLJOD();
|
||||
|
||||
// Token: 0x06013140 RID: 78144
|
||||
[Token(Token = "0x6013140")]
|
||||
[Address(Slot = "9")]
|
||||
protected abstract void PHPEJNODMHE();
|
||||
|
||||
// Token: 0x06013141 RID: 78145 RVA: 0x00495560 File Offset: 0x00493760
|
||||
[Token(Token = "0x6013141")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
protected CinematicBehaviour()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400CF26 RID: 53030
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400CF26")]
|
||||
[SerializeField]
|
||||
[Header("Animation Parameters")]
|
||||
private bool isPlaying;
|
||||
|
||||
// Token: 0x0400CF27 RID: 53031
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x400CF27")]
|
||||
private bool KHKPLMAMFHI;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002A97 RID: 10903
|
||||
[Token(Token = "0x2002A97")]
|
||||
[StructLayout(3)]
|
||||
public class CinematicCameraShake : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06013142 RID: 78146 RVA: 0x00495574 File Offset: 0x00493774
|
||||
[Token(Token = "0x6013142")]
|
||||
[Address(RVA = "0x185A050", Offset = "0x1858A50", VA = "0x18185A050", 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 num3;
|
||||
float num2 = Mathf.SmoothStep((float)0, 1f, num3);
|
||||
float frequency = this.cameraShake.Frequency;
|
||||
DGENAKIGBIB.CameraShakeConfig cameraShakeConfig;
|
||||
float frequency2 = cameraShakeConfig.Frequency;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013143 RID: 78147 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6013143")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06013144 RID: 78148 RVA: 0x004955F0 File Offset: 0x004937F0
|
||||
[Token(Token = "0x6013144")]
|
||||
[Address(RVA = "0x185A300", Offset = "0x1858D00", VA = "0x18185A300")]
|
||||
public CinematicCameraShake()
|
||||
{
|
||||
float frequency = DGENAKIGBIB.CameraShakeConfig.DefaultMediumShake.Frequency;
|
||||
this.cameraShake.Frequency = frequency;
|
||||
this.innerRadius = 5f;
|
||||
this.outerRadius = 15f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400CF28 RID: 53032
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400CF28")]
|
||||
[SerializeField]
|
||||
[Header("Configuration")]
|
||||
private DGENAKIGBIB.CameraShakeConfig cameraShake;
|
||||
|
||||
// Token: 0x0400CF29 RID: 53033
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x400CF29")]
|
||||
[SerializeField]
|
||||
private float innerRadius;
|
||||
|
||||
// Token: 0x0400CF2A RID: 53034
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400CF2A")]
|
||||
[SerializeField]
|
||||
private float outerRadius;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002A98 RID: 10904
|
||||
[Token(Token = "0x2002A98")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(ParticleSystem))]
|
||||
[StructLayout(3)]
|
||||
public class CinematicParticleSystem : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06013145 RID: 78149 RVA: 0x00495630 File Offset: 0x00493830
|
||||
[Token(Token = "0x6013145")]
|
||||
[Address(RVA = "0x185A350", Offset = "0x1858D50", VA = "0x18185A350", Slot = "4")]
|
||||
protected override void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
ParticleSystem component = base.GetComponent<ParticleSystem>();
|
||||
this.PCDGMMAKHPA = component;
|
||||
}
|
||||
|
||||
// Token: 0x06013146 RID: 78150 RVA: 0x00495654 File Offset: 0x00493854
|
||||
[Token(Token = "0x6013146")]
|
||||
[Address(RVA = "0x185A3A0", Offset = "0x1858DA0", VA = "0x18185A3A0", Slot = "8")]
|
||||
protected override void BDBPEDPLJOD()
|
||||
{
|
||||
this.PCDGMMAKHPA.Play();
|
||||
}
|
||||
|
||||
// Token: 0x06013147 RID: 78151 RVA: 0x00495674 File Offset: 0x00493874
|
||||
[Token(Token = "0x6013147")]
|
||||
[Address(RVA = "0x185A3C0", Offset = "0x1858DC0", VA = "0x18185A3C0", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
this.PCDGMMAKHPA.Stop();
|
||||
}
|
||||
|
||||
// Token: 0x06013148 RID: 78152 RVA: 0x00495694 File Offset: 0x00493894
|
||||
[Token(Token = "0x6013148")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
public CinematicParticleSystem()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400CF2B RID: 53035
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400CF2B")]
|
||||
private ParticleSystem PCDGMMAKHPA;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,300 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002A99 RID: 10905
|
||||
[Token(Token = "0x2002A99")]
|
||||
[StructLayout(3)]
|
||||
public class CinematicVideoPlayer : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06013149 RID: 78153 RVA: 0x004956A8 File Offset: 0x004938A8
|
||||
[Token(Token = "0x6013149")]
|
||||
[Address(RVA = "0x185A3E0", Offset = "0x1858DE0", VA = "0x18185A3E0", 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: 0x0601314A RID: 78154 RVA: 0x00495788 File Offset: 0x00493988
|
||||
[Token(Token = "0x601314A")]
|
||||
[Address(RVA = "0x185A930", Offset = "0x1859330", VA = "0x18185A930", 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: 0x0601314B RID: 78155 RVA: 0x0049584C File Offset: 0x00493A4C
|
||||
[Token(Token = "0x601314B")]
|
||||
[Address(RVA = "0x185A690", Offset = "0x1859090", VA = "0x18185A690")]
|
||||
private void OnEnable()
|
||||
{
|
||||
if (this.HNIKJLNICGN)
|
||||
{
|
||||
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601314C RID: 78156 RVA: 0x0049586C File Offset: 0x00493A6C
|
||||
[Token(Token = "0x601314C")]
|
||||
[Address(RVA = "0x185A850", Offset = "0x1859250", VA = "0x18185A850")]
|
||||
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: 0x170032E6 RID: 13030
|
||||
// (get) Token: 0x0601314D RID: 78157 RVA: 0x004958C8 File Offset: 0x00493AC8
|
||||
[Token(Token = "0x170032E6")]
|
||||
public bool MDOLKDKPOGF
|
||||
{
|
||||
[Token(Token = "0x601314D")]
|
||||
[Address(RVA = "0x185AB00", Offset = "0x1859500", VA = "0x18185AB00")]
|
||||
get
|
||||
{
|
||||
return this.videoPlayer.isPlaying;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601314E RID: 78158 RVA: 0x004958E8 File Offset: 0x00493AE8
|
||||
[Token(Token = "0x601314E")]
|
||||
[Address(RVA = "0x1170520", Offset = "0x116EF20", VA = "0x181170520")]
|
||||
public void PlayVideo()
|
||||
{
|
||||
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
||||
}
|
||||
|
||||
// Token: 0x0601314F RID: 78159 RVA: 0x004958FC File Offset: 0x00493AFC
|
||||
[Token(Token = "0x601314F")]
|
||||
[Address(RVA = "0x9E3670", Offset = "0x9E2070", VA = "0x1809E3670")]
|
||||
public void StopVideo()
|
||||
{
|
||||
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
||||
}
|
||||
|
||||
// Token: 0x06013150 RID: 78160 RVA: 0x00495910 File Offset: 0x00493B10
|
||||
[Token(Token = "0x6013150")]
|
||||
[Address(RVA = "0x185A780", Offset = "0x1859180", VA = "0x18185A780")]
|
||||
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: 0x06013151 RID: 78161 RVA: 0x00495968 File Offset: 0x00493B68
|
||||
[Token(Token = "0x6013151")]
|
||||
[Address(RVA = "0x185A570", Offset = "0x1858F70", VA = "0x18185A570", 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: 0x06013152 RID: 78162 RVA: 0x004959C8 File Offset: 0x00493BC8
|
||||
[Token(Token = "0x6013152")]
|
||||
[Address(RVA = "0x185A6B0", Offset = "0x18590B0", VA = "0x18185A6B0", 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: 0x06013153 RID: 78163 RVA: 0x00495A20 File Offset: 0x00493C20
|
||||
[Token(Token = "0x6013153")]
|
||||
[Address(RVA = "0x185A640", Offset = "0x1859040", VA = "0x18185A640")]
|
||||
private string FKEEDFICEHJ()
|
||||
{
|
||||
string streamingAssetsPath = Application.streamingAssetsPath;
|
||||
string text = this.streamingAssetsMoviePath;
|
||||
return string.Format("{0}/{1}", streamingAssetsPath, text);
|
||||
}
|
||||
|
||||
// Token: 0x06013154 RID: 78164 RVA: 0x00495A48 File Offset: 0x00493C48
|
||||
[Token(Token = "0x6013154")]
|
||||
[Address(RVA = "0x185AAE0", Offset = "0x18594E0", VA = "0x18185AAE0")]
|
||||
public CinematicVideoPlayer()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400CF2C RID: 53036
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400CF2C")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private VideoPlayer videoPlayer;
|
||||
|
||||
// Token: 0x0400CF2D RID: 53037
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400CF2D")]
|
||||
[SerializeField]
|
||||
private AudioSource audioSource;
|
||||
|
||||
// Token: 0x0400CF2E RID: 53038
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400CF2E")]
|
||||
public string streamingAssetsMoviePath;
|
||||
|
||||
// Token: 0x0400CF2F RID: 53039
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400CF2F")]
|
||||
[SerializeField]
|
||||
private bool autoPlay;
|
||||
|
||||
// Token: 0x0400CF30 RID: 53040
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x400CF30")]
|
||||
[Header("PS4-specific Parameters")]
|
||||
public int renderWidth = (int)((ulong)1280L);
|
||||
|
||||
// Token: 0x0400CF31 RID: 53041
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400CF31")]
|
||||
public int renderHeight = (int)((ulong)720L);
|
||||
|
||||
// Token: 0x0400CF32 RID: 53042
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400CF32")]
|
||||
public Renderer playTarget;
|
||||
|
||||
// Token: 0x0400CF33 RID: 53043
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400CF33")]
|
||||
[SerializeField]
|
||||
[HideInInspector]
|
||||
[Header("Anti Tamper")]
|
||||
private bool useAntiTamperHash = true;
|
||||
|
||||
// Token: 0x0400CF34 RID: 53044
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400CF34")]
|
||||
[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: 0x0400CF35 RID: 53045
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400CF35")]
|
||||
[SerializeField]
|
||||
[HideInInspector]
|
||||
private string hashedStreamingAssetsMoviePath;
|
||||
|
||||
// Token: 0x0400CF36 RID: 53046
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400CF36")]
|
||||
private bool GCPANLLFEDJ;
|
||||
|
||||
// Token: 0x0400CF37 RID: 53047
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x69")]
|
||||
[Token(Token = "0x400CF37")]
|
||||
private bool HNIKJLNICGN;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user