using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000251 RID: 593
[Token(Token = "0x2000251")]
[Serializable]
public class TimeData
{
	// Token: 0x06001691 RID: 5777 RVA: 0x00032E28 File Offset: 0x00031028
	[Token(Token = "0x6001691")]
	[Address(RVA = "0x6D5060", Offset = "0x6D4060", VA = "0x1806D5060")]
	public void UpdateTimeScale(float value)
	{
		this.timeScale = value;
	}

	// Token: 0x06001692 RID: 5778 RVA: 0x00032E3C File Offset: 0x0003103C
	[Token(Token = "0x6001692")]
	[Address(RVA = "0x75AF50", Offset = "0x759F50", VA = "0x18075AF50")]
	public void UpdateHitStopFactor(float value)
	{
		this.hitStopFactor = value;
	}

	// Token: 0x06001693 RID: 5779 RVA: 0x00032E50 File Offset: 0x00031050
	[Token(Token = "0x6001693")]
	[Address(RVA = "0xF5E600", Offset = "0xF5D600", VA = "0x180F5E600")]
	public void Calculate(float gameDeltaTime, float systemTimeScale)
	{
		/*
An exception occurred when decompiling this method (06001693)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void TimeData::Calculate(System.Single,System.Single)

 ---> 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: 0x06001694 RID: 5780 RVA: 0x00032E7C File Offset: 0x0003107C
	[Token(Token = "0x6001694")]
	[Address(RVA = "0x75AF40", Offset = "0x759F40", VA = "0x18075AF40")]
	public float GetTimeScale()
	{
		return this.resultTimeScale;
	}

	// Token: 0x06001695 RID: 5781 RVA: 0x00032E90 File Offset: 0x00031090
	[Token(Token = "0x6001695")]
	[Address(RVA = "0x5C7D20", Offset = "0x5C6D20", VA = "0x1805C7D20")]
	public float GetDeltaTime()
	{
		return this.resultDeltaTime;
	}

	// Token: 0x06001696 RID: 5782 RVA: 0x00032EA4 File Offset: 0x000310A4
	[Token(Token = "0x6001696")]
	[Address(RVA = "0xF5E620", Offset = "0xF5D620", VA = "0x180F5E620")]
	public TimeData()
	{
	}

	// Token: 0x040021CD RID: 8653
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x40021CD")]
	[SerializeField]
	private float timeScale = 1f;

	// Token: 0x040021CE RID: 8654
	[FieldOffset(Offset = "0x14")]
	[Token(Token = "0x40021CE")]
	[SerializeField]
	private float hitStopFactor = 1f;

	// Token: 0x040021CF RID: 8655
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40021CF")]
	[SerializeField]
	private float resultTimeScale = 1f;

	// Token: 0x040021D0 RID: 8656
	[FieldOffset(Offset = "0x1C")]
	[Token(Token = "0x40021D0")]
	[SerializeField]
	private float resultDeltaTime;
}
