Add v1.0.3.1

This commit is contained in:
2023-09-06 22:00:49 +02:00
commit 3aebbbf8f0
2051 changed files with 757425 additions and 0 deletions

View File

@@ -0,0 +1,181 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using MEC;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Video;
// Token: 0x020000FE RID: 254
[Token(Token = "0x20000FE")]
public class StaffManager : GameSceneBase, ISceneMenuController
{
// Token: 0x06000E37 RID: 3639 RVA: 0x00021F2C File Offset: 0x0002012C
[Token(Token = "0x6000E37")]
[Address(RVA = "0xAAEC80", Offset = "0xAADA80", VA = "0x180AAEC80", Slot = "4")]
public override void Enter()
{
int num = 0;
Game.FadeOutBlackScreen((float)0, num);
float ambienceVolume = Game.Config.volumeSettings.GetAmbienceVolume();
VideoPlayer videoPlayer = this.player;
float num2 = ambienceVolume * 0.6f;
int num3 = 0;
videoPlayer.SetDirectAudioVolume((ushort)num3, num2);
VideoPlayer videoPlayer2 = this.player;
VideoPlayer.EventHandler eventHandler = new VideoPlayer.EventHandler(this.PlayVideo);
videoPlayer2.prepareCompleted += eventHandler;
VideoPlayer videoPlayer3 = this.player;
VideoPlayer.EventHandler eventHandler2 = new VideoPlayer.EventHandler(this.OnVideoEnd);
videoPlayer3.loopPointReached += eventHandler2;
VideoPlayer videoPlayer4 = this.player;
string text = Application.streamingAssetsPath + "/Video/Staff.mp4";
videoPlayer4.url = text;
this.player.Prepare();
}
// Token: 0x06000E38 RID: 3640 RVA: 0x00021FE8 File Offset: 0x000201E8
[Token(Token = "0x6000E38")]
[Address(RVA = "0xAAF4E0", Offset = "0xAAE2E0", VA = "0x180AAF4E0")]
private void PrepareVideo()
{
VideoPlayer videoPlayer = this.player;
string text = Application.streamingAssetsPath + "/Video/Staff.mp4";
videoPlayer.url = text;
this.player.Prepare();
}
// Token: 0x06000E39 RID: 3641 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6000E39")]
[Address(RVA = "0xAAF460", Offset = "0xAAE260", VA = "0x180AAF460")]
private void PlayVideo(VideoPlayer source)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06000E3A RID: 3642 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6000E3A")]
[Address(RVA = "0xAAF010", Offset = "0xAADE10", VA = "0x180AAF010", Slot = "5")]
public void OpenSceneMenu()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06000E3B RID: 3643 RVA: 0x00022028 File Offset: 0x00020228
[Token(Token = "0x6000E3B")]
[Address(RVA = "0xAAEAE0", Offset = "0xAAD8E0", VA = "0x180AAEAE0", Slot = "6")]
public void CloseSceneMenu()
{
UIMessageBox uimessageBox = this.skipTip;
int num = 0;
if (!(uimessageBox == num))
{
Game.PlayCanvasSE(UICanvasSFX.Close);
this.skipTip.ClearCloseEvent();
this.skipTip.Close();
this.skipTip = (ulong)0L;
this.player.Play();
this.canSkip = true;
Game.SwitchGameplayInput();
Image image = this.blackScreen;
int num2 = 0;
TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(image, (float)num2, 0.3f).SetEase((Ease)((uint)3)).Play<TweenerCore<Color, Color, ColorOptions>>();
}
}
// Token: 0x06000E3C RID: 3644 RVA: 0x000220B4 File Offset: 0x000202B4
[Token(Token = "0x6000E3C")]
[Address(RVA = "0xAAF560", Offset = "0xAAE360", VA = "0x180AAF560")]
private void Resume()
{
this.skipTip.ClearCloseEvent();
this.skipTip.Close();
this.skipTip = (ulong)0L;
this.player.Play();
this.canSkip = true;
Game.SwitchGameplayInput();
Image image = this.blackScreen;
int num = 0;
TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(image, (float)num, 0.3f).SetEase((Ease)((uint)3)).Play<TweenerCore<Color, Color, ColorOptions>>();
}
// Token: 0x06000E3D RID: 3645 RVA: 0x00022124 File Offset: 0x00020324
[Token(Token = "0x6000E3D")]
[Address(RVA = "0xAAEF10", Offset = "0xAADD10", VA = "0x180AAEF10")]
private void OnVideoEnd(VideoPlayer source)
{
VideoPlayer videoPlayer = this.player;
this.canSkip = false;
videoPlayer.Stop();
int num;
StaffManager.<WaitForMessageBox>d__11 <WaitForMessageBox>d__ = new StaffManager.<WaitForMessageBox>d__11(num);
num = 0;
<WaitForMessageBox>d__.<>4__this = this;
CoroutineHandle coroutineHandle = MECExtensionMethods1.RunCoroutine(<WaitForMessageBox>d__);
Image image = this.blackScreen;
int num2 = 0;
TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(image, (float)num2, 0.3f).SetEase((Ease)((uint)3)).Play<TweenerCore<Color, Color, ColorOptions>>();
}
// Token: 0x06000E3E RID: 3646 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6000E3E")]
[Address(RVA = "0xAAFAA0", Offset = "0xAAE8A0", VA = "0x180AAFAA0")]
private IEnumerator<float> WaitForMessageBox()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06000E3F RID: 3647 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6000E3F")]
[Address(RVA = "0xAAF660", Offset = "0xAAE460", VA = "0x180AAF660")]
private void ShowBeatingMessageBox()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06000E40 RID: 3648 RVA: 0x0002218C File Offset: 0x0002038C
[Token(Token = "0x6000E40")]
[Address(RVA = "0xAAEE30", Offset = "0xAADC30", VA = "0x180AAEE30")]
private void OnDisable()
{
VideoPlayer videoPlayer = this.player;
VideoPlayer.EventHandler eventHandler = new VideoPlayer.EventHandler(this.PlayVideo);
videoPlayer.prepareCompleted -= eventHandler;
VideoPlayer videoPlayer2 = this.player;
VideoPlayer.EventHandler eventHandler2 = new VideoPlayer.EventHandler(this.OnVideoEnd);
videoPlayer2.loopPointReached -= eventHandler2;
}
// Token: 0x06000E41 RID: 3649 RVA: 0x000221D8 File Offset: 0x000203D8
[Token(Token = "0x6000E41")]
[Address(RVA = "0x3FBF80", Offset = "0x3FAD80", VA = "0x1803FBF80")]
public StaffManager()
{
}
// Token: 0x040018C5 RID: 6341
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40018C5")]
[SerializeField]
private VideoPlayer player;
// Token: 0x040018C6 RID: 6342
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40018C6")]
[SerializeField]
private Image blackScreen;
// Token: 0x040018C7 RID: 6343
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40018C7")]
[SerializeField]
private bool canSkip;
// Token: 0x040018C8 RID: 6344
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40018C8")]
private UIMessageBox skipTip;
}