m
This commit is contained in:
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02003065 RID: 12389
|
||||
[Token(Token = "0x2003065")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class Cinematic : MonoBehaviour
|
||||
{
|
||||
// Token: 0x170039C6 RID: 14790
|
||||
// (get) Token: 0x06014FB6 RID: 85942 RVA: 0x004E4104 File Offset: 0x004E2304
|
||||
[Token(Token = "0x170039C6")]
|
||||
private static RuntimeAnimatorController BONEAKHDIFN
|
||||
{
|
||||
[Token(Token = "0x6014FB6")]
|
||||
[Address(RVA = "0x1F132D0", Offset = "0x1F122D0", VA = "0x181F132D0")]
|
||||
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: 0x170039C7 RID: 14791
|
||||
// (get) Token: 0x06014FB7 RID: 85943 RVA: 0x004E4140 File Offset: 0x004E2340
|
||||
[Token(Token = "0x170039C7")]
|
||||
public bool BICMECLEPLM
|
||||
{
|
||||
[Token(Token = "0x6014FB7")]
|
||||
[Address(RVA = "0x1F13CB0", Offset = "0x1F12CB0", VA = "0x181F13CB0")]
|
||||
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: 0x06014FB8 RID: 85944 RVA: 0x004E4194 File Offset: 0x004E2394
|
||||
[Token(Token = "0x6014FB8")]
|
||||
[Address(RVA = "0x1F13420", Offset = "0x1F12420", VA = "0x181F13420")]
|
||||
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: 0x06014FB9 RID: 85945 RVA: 0x004E4244 File Offset: 0x004E2444
|
||||
[Token(Token = "0x6014FB9")]
|
||||
[Address(RVA = "0x1F135E0", Offset = "0x1F125E0", VA = "0x181F135E0")]
|
||||
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: 0x06014FBA RID: 85946 RVA: 0x004E42E4 File Offset: 0x004E24E4
|
||||
[Token(Token = "0x6014FBA")]
|
||||
[Address(RVA = "0x1F13770", Offset = "0x1F12770", VA = "0x181F13770")]
|
||||
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: 0x06014FBB RID: 85947 RVA: 0x004E4374 File Offset: 0x004E2574
|
||||
[Token(Token = "0x6014FBB")]
|
||||
[Address(RVA = "0x1F13990", Offset = "0x1F12990", VA = "0x181F13990")]
|
||||
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: 0x06014FBC RID: 85948 RVA: 0x004E4400 File Offset: 0x004E2600
|
||||
[Token(Token = "0x6014FBC")]
|
||||
[Address(RVA = "0x1F13B10", Offset = "0x1F12B10", VA = "0x181F13B10")]
|
||||
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: 0x06014FBD RID: 85949 RVA: 0x004E4478 File Offset: 0x004E2678
|
||||
[Token(Token = "0x6014FBD")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
public Cinematic()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DD57 RID: 56663
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400DD57")]
|
||||
[SerializeField]
|
||||
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x0400DD58 RID: 56664
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DD58")]
|
||||
[SerializeField]
|
||||
private AnimationClip cinematicAnimation;
|
||||
|
||||
// Token: 0x0400DD59 RID: 56665
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400DD59")]
|
||||
private CinematicBehaviour[] AFPKDDPIDHL;
|
||||
|
||||
// Token: 0x0400DD5A RID: 56666
|
||||
[Token(Token = "0x400DD5A")]
|
||||
private static readonly int MJLDFGPBPFK = Animator.StringToHash("Play");
|
||||
|
||||
// Token: 0x0400DD5B RID: 56667
|
||||
[Token(Token = "0x400DD5B")]
|
||||
private static readonly string IHMJNIICJAB = "CinematicTemplateController";
|
||||
|
||||
// Token: 0x0400DD5C RID: 56668
|
||||
[Token(Token = "0x400DD5C")]
|
||||
private static readonly string IAEIPHEEDEI = "CinematicTemplateAnimation";
|
||||
|
||||
// Token: 0x0400DD5D RID: 56669
|
||||
[Token(Token = "0x400DD5D")]
|
||||
private static readonly string HMJJIMACENL = "Cinematic";
|
||||
|
||||
// Token: 0x0400DD5E RID: 56670
|
||||
[Token(Token = "0x400DD5E")]
|
||||
private static RuntimeAnimatorController GKEEIFBAKMF;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02003066 RID: 12390
|
||||
[Token(Token = "0x2003066")]
|
||||
public class CinematicAnimator : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014FBF RID: 85951 RVA: 0x004E44C8 File Offset: 0x004E26C8
|
||||
[Token(Token = "0x6014FBF")]
|
||||
[Address(RVA = "0x1F12350", Offset = "0x1F11350", VA = "0x181F12350", Slot = "4")]
|
||||
protected override void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.LDOJFIEANFB = component;
|
||||
}
|
||||
|
||||
// Token: 0x06014FC0 RID: 85952 RVA: 0x004E44EC File Offset: 0x004E26EC
|
||||
[Token(Token = "0x6014FC0")]
|
||||
[Address(RVA = "0x1F123A0", Offset = "0x1F113A0", VA = "0x181F123A0", 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: 0x06014FC1 RID: 85953 RVA: 0x004E4524 File Offset: 0x004E2724
|
||||
[Token(Token = "0x6014FC1")]
|
||||
[Address(RVA = "0x1F12450", Offset = "0x1F11450", VA = "0x181F12450", 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: 0x06014FC2 RID: 85954 RVA: 0x004E4560 File Offset: 0x004E2760
|
||||
[Token(Token = "0x6014FC2")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
public CinematicAnimator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DD5F RID: 56671
|
||||
[Token(Token = "0x400DD5F")]
|
||||
private static readonly int HKMGJGDMIIL = Animator.StringToHash("Play");
|
||||
|
||||
// Token: 0x0400DD60 RID: 56672
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DD60")]
|
||||
private Animator LDOJFIEANFB;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02003067 RID: 12391
|
||||
[Token(Token = "0x2003067")]
|
||||
public class CinematicAudio : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014FC4 RID: 85956 RVA: 0x004E4590 File Offset: 0x004E2790
|
||||
[Token(Token = "0x6014FC4")]
|
||||
[Address(RVA = "0x1F12550", Offset = "0x1F11550", VA = "0x181F12550", 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: 0x06014FC5 RID: 85957 RVA: 0x004E460C File Offset: 0x004E280C
|
||||
[Token(Token = "0x6014FC5")]
|
||||
[Address(RVA = "0x1F12750", Offset = "0x1F11750", VA = "0x181F12750", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
this.FDMCKIAMNIN();
|
||||
}
|
||||
|
||||
// Token: 0x06014FC6 RID: 85958 RVA: 0x004E4620 File Offset: 0x004E2820
|
||||
[Token(Token = "0x6014FC6")]
|
||||
[Address(RVA = "0x1F126B0", Offset = "0x1F116B0", VA = "0x181F126B0")]
|
||||
private void FDMCKIAMNIN()
|
||||
{
|
||||
SFXAudioSource flldimmncom = this.FLLDIMMNCOM;
|
||||
int num = 0;
|
||||
if (flldimmncom != num)
|
||||
{
|
||||
AudioManager.StopLoopingSFX(this.FLLDIMMNCOM);
|
||||
this.FLLDIMMNCOM = (ulong)0L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014FC7 RID: 85959 RVA: 0x004E4654 File Offset: 0x004E2854
|
||||
[Token(Token = "0x6014FC7")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
public CinematicAudio()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DD61 RID: 56673
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DD61")]
|
||||
[SerializeField]
|
||||
[Header("Configuration")]
|
||||
private bool is2D;
|
||||
|
||||
// Token: 0x0400DD62 RID: 56674
|
||||
[FieldOffset(Offset = "0x21")]
|
||||
[Token(Token = "0x400DD62")]
|
||||
[SerializeField]
|
||||
private bool isLooping;
|
||||
|
||||
// Token: 0x0400DD63 RID: 56675
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400DD63")]
|
||||
[SerializeField]
|
||||
private RecRoomAudioClip audioClip;
|
||||
|
||||
// Token: 0x0400DD64 RID: 56676
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400DD64")]
|
||||
private SFXAudioSource FLLDIMMNCOM;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02003068 RID: 12392
|
||||
[Token(Token = "0x2003068")]
|
||||
public abstract class CinematicBehaviour : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06014FC8 RID: 85960 RVA: 0x004E4668 File Offset: 0x004E2868
|
||||
[Token(Token = "0x6014FC8")]
|
||||
[Address(RVA = "0x1F12760", Offset = "0x1F11760", VA = "0x181F12760", Slot = "4")]
|
||||
protected virtual void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
}
|
||||
|
||||
// Token: 0x06014FC9 RID: 85961 RVA: 0x004E467C File Offset: 0x004E287C
|
||||
[Token(Token = "0x6014FC9")]
|
||||
[Address(RVA = "0xC8D4E0", Offset = "0xC8C4E0", VA = "0x180C8D4E0", Slot = "5")]
|
||||
protected virtual void Start()
|
||||
{
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x06014FCA RID: 85962 RVA: 0x004E4690 File Offset: 0x004E2890
|
||||
[Token(Token = "0x6014FCA")]
|
||||
[Address(RVA = "0x1F12770", Offset = "0x1F11770", VA = "0x181F12770", Slot = "6")]
|
||||
protected virtual void OnDisable()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x06014FCB RID: 85963 RVA: 0x004E46AC File Offset: 0x004E28AC
|
||||
[Token(Token = "0x6014FCB")]
|
||||
[Address(RVA = "0x1F12790", Offset = "0x1F11790", VA = "0x181F12790", 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: 0x06014FCC RID: 85964 RVA: 0x004E470C File Offset: 0x004E290C
|
||||
[Token(Token = "0x6014FCC")]
|
||||
[Address(RVA = "0x1F12770", Offset = "0x1F11770", VA = "0x181F12770")]
|
||||
public void Reset()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
this.BDBPEDPLJOD();
|
||||
}
|
||||
|
||||
// Token: 0x06014FCD RID: 85965
|
||||
[Token(Token = "0x6014FCD")]
|
||||
[Address(Slot = "8")]
|
||||
protected abstract void BDBPEDPLJOD();
|
||||
|
||||
// Token: 0x06014FCE RID: 85966
|
||||
[Token(Token = "0x6014FCE")]
|
||||
[Address(Slot = "9")]
|
||||
protected abstract void PHPEJNODMHE();
|
||||
|
||||
// Token: 0x06014FCF RID: 85967 RVA: 0x004E4728 File Offset: 0x004E2928
|
||||
[Token(Token = "0x6014FCF")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
protected CinematicBehaviour()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DD65 RID: 56677
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400DD65")]
|
||||
[SerializeField]
|
||||
[Header("Animation Parameters")]
|
||||
private bool isPlaying;
|
||||
|
||||
// Token: 0x0400DD66 RID: 56678
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x400DD66")]
|
||||
private bool KHKPLMAMFHI;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02003069 RID: 12393
|
||||
[Token(Token = "0x2003069")]
|
||||
public class CinematicCameraShake : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014FD0 RID: 85968 RVA: 0x004E473C File Offset: 0x004E293C
|
||||
[Token(Token = "0x6014FD0")]
|
||||
[Address(RVA = "0x1F12800", Offset = "0x1F11800", VA = "0x181F12800", 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: 0x06014FD1 RID: 85969 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6014FD1")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06014FD2 RID: 85970 RVA: 0x004E47CC File Offset: 0x004E29CC
|
||||
[Token(Token = "0x6014FD2")]
|
||||
[Address(RVA = "0x1F12AB0", Offset = "0x1F11AB0", VA = "0x181F12AB0")]
|
||||
public CinematicCameraShake()
|
||||
{
|
||||
float frequency = DGENAKIGBIB.CameraShakeConfig.DefaultMediumShake.Frequency;
|
||||
this.cameraShake.Frequency = frequency;
|
||||
this.innerRadius = 5f;
|
||||
this.outerRadius = 15f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400DD67 RID: 56679
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DD67")]
|
||||
[SerializeField]
|
||||
[Header("Configuration")]
|
||||
private DGENAKIGBIB.CameraShakeConfig cameraShake;
|
||||
|
||||
// Token: 0x0400DD68 RID: 56680
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x400DD68")]
|
||||
[SerializeField]
|
||||
private float innerRadius;
|
||||
|
||||
// Token: 0x0400DD69 RID: 56681
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400DD69")]
|
||||
[SerializeField]
|
||||
private float outerRadius;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x0200306A RID: 12394
|
||||
[Token(Token = "0x200306A")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(ParticleSystem))]
|
||||
public class CinematicParticleSystem : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014FD3 RID: 85971 RVA: 0x004E480C File Offset: 0x004E2A0C
|
||||
[Token(Token = "0x6014FD3")]
|
||||
[Address(RVA = "0x1F12B00", Offset = "0x1F11B00", VA = "0x181F12B00", Slot = "4")]
|
||||
protected override void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
ParticleSystem component = base.GetComponent<ParticleSystem>();
|
||||
this.PCDGMMAKHPA = component;
|
||||
}
|
||||
|
||||
// Token: 0x06014FD4 RID: 85972 RVA: 0x004E4830 File Offset: 0x004E2A30
|
||||
[Token(Token = "0x6014FD4")]
|
||||
[Address(RVA = "0x1F12B50", Offset = "0x1F11B50", VA = "0x181F12B50", Slot = "8")]
|
||||
protected override void BDBPEDPLJOD()
|
||||
{
|
||||
this.PCDGMMAKHPA.Play();
|
||||
}
|
||||
|
||||
// Token: 0x06014FD5 RID: 85973 RVA: 0x004E4850 File Offset: 0x004E2A50
|
||||
[Token(Token = "0x6014FD5")]
|
||||
[Address(RVA = "0x1F12B70", Offset = "0x1F11B70", VA = "0x181F12B70", Slot = "9")]
|
||||
protected override void PHPEJNODMHE()
|
||||
{
|
||||
this.PCDGMMAKHPA.Stop();
|
||||
}
|
||||
|
||||
// Token: 0x06014FD6 RID: 85974 RVA: 0x004E4870 File Offset: 0x004E2A70
|
||||
[Token(Token = "0x6014FD6")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
public CinematicParticleSystem()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DD6A RID: 56682
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DD6A")]
|
||||
private ParticleSystem PCDGMMAKHPA;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,299 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using Pathfinding.RVO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x0200306B RID: 12395
|
||||
[Token(Token = "0x200306B")]
|
||||
public class CinematicVideoPlayer : CinematicBehaviour
|
||||
{
|
||||
// Token: 0x06014FD7 RID: 85975 RVA: 0x004E4884 File Offset: 0x004E2A84
|
||||
[Token(Token = "0x6014FD7")]
|
||||
[Address(RVA = "0x1F12B90", Offset = "0x1F11B90", VA = "0x181F12B90", 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: 0x06014FD8 RID: 85976 RVA: 0x004E4964 File Offset: 0x004E2B64
|
||||
[Token(Token = "0x6014FD8")]
|
||||
[Address(RVA = "0x1F130E0", Offset = "0x1F120E0", VA = "0x181F130E0", 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: 0x06014FD9 RID: 85977 RVA: 0x004E4A28 File Offset: 0x004E2C28
|
||||
[Token(Token = "0x6014FD9")]
|
||||
[Address(RVA = "0x1F12E40", Offset = "0x1F11E40", VA = "0x181F12E40")]
|
||||
private void OnEnable()
|
||||
{
|
||||
if (this.HNIKJLNICGN)
|
||||
{
|
||||
float height = ((IAgent)this).Height;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014FDA RID: 85978 RVA: 0x004E4A48 File Offset: 0x004E2C48
|
||||
[Token(Token = "0x6014FDA")]
|
||||
[Address(RVA = "0x1F13000", Offset = "0x1F12000", VA = "0x181F13000")]
|
||||
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: 0x170039C8 RID: 14792
|
||||
// (get) Token: 0x06014FDB RID: 85979 RVA: 0x004E4AA4 File Offset: 0x004E2CA4
|
||||
[Token(Token = "0x170039C8")]
|
||||
public bool MDOLKDKPOGF
|
||||
{
|
||||
[Token(Token = "0x6014FDB")]
|
||||
[Address(RVA = "0x1F132B0", Offset = "0x1F122B0", VA = "0x181F132B0")]
|
||||
get
|
||||
{
|
||||
return this.videoPlayer.isPlaying;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014FDC RID: 85980 RVA: 0x004E4AC4 File Offset: 0x004E2CC4
|
||||
[Token(Token = "0x6014FDC")]
|
||||
[Address(RVA = "0x677D80", Offset = "0x676D80", VA = "0x180677D80")]
|
||||
public void PlayVideo()
|
||||
{
|
||||
float height = ((IAgent)this).Height;
|
||||
}
|
||||
|
||||
// Token: 0x06014FDD RID: 85981 RVA: 0x004E4AD8 File Offset: 0x004E2CD8
|
||||
[Token(Token = "0x6014FDD")]
|
||||
[Address(RVA = "0xC8D4E0", Offset = "0xC8C4E0", VA = "0x180C8D4E0")]
|
||||
public void StopVideo()
|
||||
{
|
||||
float height = ((IAgent)this).Height;
|
||||
}
|
||||
|
||||
// Token: 0x06014FDE RID: 85982 RVA: 0x004E4AEC File Offset: 0x004E2CEC
|
||||
[Token(Token = "0x6014FDE")]
|
||||
[Address(RVA = "0x1F12F30", Offset = "0x1F11F30", VA = "0x181F12F30")]
|
||||
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: 0x06014FDF RID: 85983 RVA: 0x004E4B44 File Offset: 0x004E2D44
|
||||
[Token(Token = "0x6014FDF")]
|
||||
[Address(RVA = "0x1F12D20", Offset = "0x1F11D20", VA = "0x181F12D20", 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: 0x06014FE0 RID: 85984 RVA: 0x004E4BA4 File Offset: 0x004E2DA4
|
||||
[Token(Token = "0x6014FE0")]
|
||||
[Address(RVA = "0x1F12E60", Offset = "0x1F11E60", VA = "0x181F12E60", 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: 0x06014FE1 RID: 85985 RVA: 0x004E4BFC File Offset: 0x004E2DFC
|
||||
[Token(Token = "0x6014FE1")]
|
||||
[Address(RVA = "0x1F12DF0", Offset = "0x1F11DF0", VA = "0x181F12DF0")]
|
||||
private string FKEEDFICEHJ()
|
||||
{
|
||||
string streamingAssetsPath = Application.streamingAssetsPath;
|
||||
string text = this.streamingAssetsMoviePath;
|
||||
return string.Format("{0}/{1}", streamingAssetsPath, text);
|
||||
}
|
||||
|
||||
// Token: 0x06014FE2 RID: 85986 RVA: 0x004E4C24 File Offset: 0x004E2E24
|
||||
[Token(Token = "0x6014FE2")]
|
||||
[Address(RVA = "0x1F13290", Offset = "0x1F12290", VA = "0x181F13290")]
|
||||
public CinematicVideoPlayer()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DD6B RID: 56683
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DD6B")]
|
||||
[SerializeField]
|
||||
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
||||
private VideoPlayer videoPlayer;
|
||||
|
||||
// Token: 0x0400DD6C RID: 56684
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400DD6C")]
|
||||
[SerializeField]
|
||||
private AudioSource audioSource;
|
||||
|
||||
// Token: 0x0400DD6D RID: 56685
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400DD6D")]
|
||||
public string streamingAssetsMoviePath;
|
||||
|
||||
// Token: 0x0400DD6E RID: 56686
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400DD6E")]
|
||||
[SerializeField]
|
||||
private bool autoPlay;
|
||||
|
||||
// Token: 0x0400DD6F RID: 56687
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x400DD6F")]
|
||||
[Header("PS4-specific Parameters")]
|
||||
public int renderWidth = (int)((ulong)1280L);
|
||||
|
||||
// Token: 0x0400DD70 RID: 56688
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400DD70")]
|
||||
public int renderHeight = (int)((ulong)720L);
|
||||
|
||||
// Token: 0x0400DD71 RID: 56689
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400DD71")]
|
||||
public Renderer playTarget;
|
||||
|
||||
// Token: 0x0400DD72 RID: 56690
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400DD72")]
|
||||
[SerializeField]
|
||||
[HideInInspector]
|
||||
[Header("Anti Tamper")]
|
||||
private bool useAntiTamperHash = true;
|
||||
|
||||
// Token: 0x0400DD73 RID: 56691
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400DD73")]
|
||||
[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: 0x0400DD74 RID: 56692
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400DD74")]
|
||||
[HideInInspector]
|
||||
[SerializeField]
|
||||
private string hashedStreamingAssetsMoviePath;
|
||||
|
||||
// Token: 0x0400DD75 RID: 56693
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400DD75")]
|
||||
private bool GCPANLLFEDJ;
|
||||
|
||||
// Token: 0x0400DD76 RID: 56694
|
||||
[FieldOffset(Offset = "0x69")]
|
||||
[Token(Token = "0x400DD76")]
|
||||
private bool HNIKJLNICGN;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user