328 lines
15 KiB
C#
328 lines
15 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using MEC;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000213 RID: 531
|
|
[Token(Token = "0x2000213")]
|
|
public class StageTimeManager : MonoBehaviour
|
|
{
|
|
// Token: 0x060014B7 RID: 5303 RVA: 0x0002F454 File Offset: 0x0002D654
|
|
[Token(Token = "0x60014B7")]
|
|
[Address(RVA = "0xB14F80", Offset = "0xB13780", VA = "0x180B14F80")]
|
|
public void Init()
|
|
{
|
|
Game.OnGameSettingsChanged += new Action(this.UpdateWithGameSetting);
|
|
bool hitStop = Game.Config.gameSettings.hitStop;
|
|
this.enableHitStop = hitStop;
|
|
}
|
|
|
|
// Token: 0x060014B8 RID: 5304 RVA: 0x0002F494 File Offset: 0x0002D694
|
|
[Token(Token = "0x60014B8")]
|
|
[Address(RVA = "0xB15880", Offset = "0xB14080", VA = "0x180B15880")]
|
|
private void UpdateWithGameSetting(GameSettings gameSettings)
|
|
{
|
|
bool hitStop = gameSettings.hitStop;
|
|
this.enableHitStop = hitStop;
|
|
}
|
|
|
|
// Token: 0x060014B9 RID: 5305 RVA: 0x0002F4B8 File Offset: 0x0002D6B8
|
|
[Token(Token = "0x60014B9")]
|
|
[Address(RVA = "0xB14D60", Offset = "0xB13560", VA = "0x180B14D60")]
|
|
public void Execute(Action<TimeEffectType, StageTimeManager> timeEventHandler)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060014B9)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void StageTimeManager::Execute(System.Action`2<TimeEffectType,StageTimeManager>)
|
|
|
|
---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
|
|
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
|
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 112
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x060014BA RID: 5306 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014BA")]
|
|
[Address(RVA = "0xB150A0", Offset = "0xB138A0", VA = "0x180B150A0")]
|
|
private IEnumerator<float> Tick()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014BB RID: 5307 RVA: 0x0002F58C File Offset: 0x0002D78C
|
|
[Token(Token = "0x60014BB")]
|
|
[Address(RVA = "0xB148A0", Offset = "0xB130A0", VA = "0x180B148A0")]
|
|
private void CalculateTimeValues()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060014BB)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void StageTimeManager::CalculateTimeValues()
|
|
|
|
---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
|
|
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
|
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 112
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x060014BC RID: 5308 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014BC")]
|
|
[Address(RVA = "0xB15050", Offset = "0xB13850", VA = "0x180B15050")]
|
|
private void SendEvents(TimeEffectType effectType)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014BD RID: 5309 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014BD")]
|
|
[Address(RVA = "0xB154F0", Offset = "0xB13CF0", VA = "0x180B154F0")]
|
|
public void UpdateSystemTimeScale(float timeScale, bool clearHitStop)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014BE RID: 5310 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014BE")]
|
|
[Address(RVA = "0xB15660", Offset = "0xB13E60", VA = "0x180B15660")]
|
|
public void UpdateTimeScaleFactor(float timeScale, float duration)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014BF RID: 5311 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014BF")]
|
|
[Address(RVA = "0xB15290", Offset = "0xB13A90", VA = "0x180B15290")]
|
|
public void UpdatePlayerTimeScale(float timeScale)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014C0 RID: 5312 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014C0")]
|
|
[Address(RVA = "0xB153C0", Offset = "0xB13BC0", VA = "0x180B153C0")]
|
|
public void UpdateStageTimeScale(float timeScale)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014C1 RID: 5313 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014C1")]
|
|
[Address(RVA = "0xB14A20", Offset = "0xB13220", VA = "0x180B14A20")]
|
|
public void EnablePlayerHitStop(float duration, float hitStopFactor)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014C2 RID: 5314 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014C2")]
|
|
[Address(RVA = "0xB14BC0", Offset = "0xB133C0", VA = "0x180B14BC0")]
|
|
public void EnableStageHitStop(float duration, float hitStopFactor)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014C3 RID: 5315 RVA: 0x0002F5E0 File Offset: 0x0002D7E0
|
|
[Token(Token = "0x60014C3")]
|
|
[Address(RVA = "0x676BA0", Offset = "0x6753A0", VA = "0x180676BA0")]
|
|
public float GetGameDeltaTime()
|
|
{
|
|
return this.gameDeltaTime;
|
|
}
|
|
|
|
// Token: 0x060014C4 RID: 5316 RVA: 0x0002F5F4 File Offset: 0x0002D7F4
|
|
[Token(Token = "0x60014C4")]
|
|
[Address(RVA = "0x5B1FE0", Offset = "0x5B07E0", VA = "0x1805B1FE0")]
|
|
public float GetSystemDeltaTime()
|
|
{
|
|
return this.systemDeltaTime;
|
|
}
|
|
|
|
// Token: 0x060014C5 RID: 5317 RVA: 0x0002F608 File Offset: 0x0002D808
|
|
[Token(Token = "0x60014C5")]
|
|
[Address(RVA = "0x354180", Offset = "0x352980", VA = "0x180354180")]
|
|
public TimeData GetPlayerTimeData()
|
|
{
|
|
return this.playerTimeData;
|
|
}
|
|
|
|
// Token: 0x060014C6 RID: 5318 RVA: 0x0002F61C File Offset: 0x0002D81C
|
|
[Token(Token = "0x60014C6")]
|
|
[Address(RVA = "0x354080", Offset = "0x352880", VA = "0x180354080")]
|
|
public TimeData GetStageTimeData()
|
|
{
|
|
return this.stageTimeData;
|
|
}
|
|
|
|
// Token: 0x060014C7 RID: 5319 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014C7")]
|
|
[Address(RVA = "0xB14F30", Offset = "0xB13730", VA = "0x180B14F30")]
|
|
public ulong GetPlayedSeconds()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014C8 RID: 5320 RVA: 0x0002F630 File Offset: 0x0002D830
|
|
[Token(Token = "0x60014C8")]
|
|
[Address(RVA = "0xB14910", Offset = "0xB13110", VA = "0x180B14910")]
|
|
public void Dispose()
|
|
{
|
|
CoroutineHandle[] array = new CoroutineHandle[4];
|
|
int length = array.Length;
|
|
CoroutineHandle coroutineHandle = this.mainProcessor;
|
|
array[0] = coroutineHandle;
|
|
CoroutineHandle coroutineHandle2 = this.systemFactorProcessor;
|
|
array[0] = coroutineHandle2;
|
|
CoroutineHandle coroutineHandle3 = this.playerHitStopProcessor;
|
|
array[1] = coroutineHandle3;
|
|
CoroutineHandle coroutineHandle4 = this.stageHitStopProcessor;
|
|
array[1] = coroutineHandle4;
|
|
int num = Timing.KillCoroutines(array);
|
|
int num2 = 0;
|
|
this.systemTimeScale = (float)num2;
|
|
this.timeEventHandler = num2;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060014C9 RID: 5321 RVA: 0x0002F6AC File Offset: 0x0002D8AC
|
|
[Token(Token = "0x60014C9")]
|
|
[Address(RVA = "0xB158A0", Offset = "0xB140A0", VA = "0x180B158A0")]
|
|
public StageTimeManager()
|
|
{
|
|
TimeData timeData = new TimeData();
|
|
this.playerTimeData = timeData;
|
|
TimeData timeData2 = new TimeData();
|
|
this.stageTimeData = timeData2;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x060014CA RID: 5322 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014CA")]
|
|
[Address(RVA = "0xB15210", Offset = "0xB13A10", VA = "0x180B15210")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<float> <UpdateTimeScaleFactor>g__WaitForRestore|22_0(float delay)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014CB RID: 5323 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014CB")]
|
|
[Address(RVA = "0xB15110", Offset = "0xB13910", VA = "0x180B15110")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<float> <EnablePlayerHitStop>g__WaitForRestore|25_0(float timer)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060014CC RID: 5324 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60014CC")]
|
|
[Address(RVA = "0xB15190", Offset = "0xB13990", VA = "0x180B15190")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<float> <EnableStageHitStop>g__WaitForRestore|26_0(float timer)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04001FFB RID: 8187
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001FFB")]
|
|
[SerializeField]
|
|
private float gameDeltaTime;
|
|
|
|
// Token: 0x04001FFC RID: 8188
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001FFC")]
|
|
[SerializeField]
|
|
private float systemDeltaTime;
|
|
|
|
// Token: 0x04001FFD RID: 8189
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001FFD")]
|
|
[SerializeField]
|
|
private bool enableHitStop = true;
|
|
|
|
// Token: 0x04001FFE RID: 8190
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4001FFE")]
|
|
[SerializeField]
|
|
private float systemTimeScale = 1f;
|
|
|
|
// Token: 0x04001FFF RID: 8191
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001FFF")]
|
|
[SerializeField]
|
|
private float systemTimeScaleFactor = 1f;
|
|
|
|
// Token: 0x04002000 RID: 8192
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4002000")]
|
|
[SerializeField]
|
|
private TimeData playerTimeData;
|
|
|
|
// Token: 0x04002001 RID: 8193
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4002001")]
|
|
[SerializeField]
|
|
private float playerHitStopTimer;
|
|
|
|
// Token: 0x04002002 RID: 8194
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4002002")]
|
|
[SerializeField]
|
|
private TimeData stageTimeData;
|
|
|
|
// Token: 0x04002003 RID: 8195
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4002003")]
|
|
[SerializeField]
|
|
private float stageHitStopTimer;
|
|
|
|
// Token: 0x04002004 RID: 8196
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4002004")]
|
|
private ulong playedSeconds;
|
|
|
|
// Token: 0x04002005 RID: 8197
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4002005")]
|
|
private CoroutineHandle mainProcessor;
|
|
|
|
// Token: 0x04002006 RID: 8198
|
|
[FieldOffset(Offset = "0x5C")]
|
|
[Token(Token = "0x4002006")]
|
|
private CoroutineHandle systemFactorProcessor;
|
|
|
|
// Token: 0x04002007 RID: 8199
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4002007")]
|
|
private CoroutineHandle playerHitStopProcessor;
|
|
|
|
// Token: 0x04002008 RID: 8200
|
|
[FieldOffset(Offset = "0x64")]
|
|
[Token(Token = "0x4002008")]
|
|
private CoroutineHandle stageHitStopProcessor;
|
|
|
|
// Token: 0x04002009 RID: 8201
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4002009")]
|
|
private Action<TimeEffectType, StageTimeManager> timeEventHandler;
|
|
}
|