using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000210 RID: 528
[Token(Token = "0x2000210")]
[Serializable]
public class TimeData
{
	// Token: 0x060014C6 RID: 5318 RVA: 0x0002F100 File Offset: 0x0002D300
	[Token(Token = "0x60014C6")]
	[Address(RVA = "0x6E7210", Offset = "0x6E6010", VA = "0x1806E7210")]
	public void UpdateTimeScale(float value)
	{
		this.timeScale = value;
	}

	// Token: 0x060014C7 RID: 5319 RVA: 0x0002F114 File Offset: 0x0002D314
	[Token(Token = "0x60014C7")]
	[Address(RVA = "0x6E7200", Offset = "0x6E6000", VA = "0x1806E7200")]
	public void UpdateHitStopFactor(float value)
	{
		this.hitStopFactor = value;
	}

	// Token: 0x060014C8 RID: 5320 RVA: 0x0002F128 File Offset: 0x0002D328
	[Token(Token = "0x60014C8")]
	[Address(RVA = "0x1300F90", Offset = "0x12FFD90", VA = "0x181300F90")]
	public void Calculate(float gameDeltaTime, float systemTimeScale)
	{
		/*
An exception occurred when decompiling this method (060014C8)

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: 0x060014C9 RID: 5321 RVA: 0x0002F154 File Offset: 0x0002D354
	[Token(Token = "0x60014C9")]
	[Address(RVA = "0x603D30", Offset = "0x602B30", VA = "0x180603D30")]
	public float GetTimeScale()
	{
		return this.resultTimeScale;
	}

	// Token: 0x060014CA RID: 5322 RVA: 0x0002F168 File Offset: 0x0002D368
	[Token(Token = "0x60014CA")]
	[Address(RVA = "0x5B5B10", Offset = "0x5B4910", VA = "0x1805B5B10")]
	public float GetDeltaTime()
	{
		return this.resultDeltaTime;
	}

	// Token: 0x060014CB RID: 5323 RVA: 0x0002F17C File Offset: 0x0002D37C
	[Token(Token = "0x60014CB")]
	[Address(RVA = "0x1300FB0", Offset = "0x12FFDB0", VA = "0x181300FB0")]
	public TimeData()
	{
	}

	// Token: 0x04001FE4 RID: 8164
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x4001FE4")]
	[SerializeField]
	private float timeScale = 1f;

	// Token: 0x04001FE5 RID: 8165
	[FieldOffset(Offset = "0x14")]
	[Token(Token = "0x4001FE5")]
	[SerializeField]
	private float hitStopFactor = 1f;

	// Token: 0x04001FE6 RID: 8166
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4001FE6")]
	[SerializeField]
	private float resultTimeScale = 1f;

	// Token: 0x04001FE7 RID: 8167
	[FieldOffset(Offset = "0x1C")]
	[Token(Token = "0x4001FE7")]
	[SerializeField]
	private float resultDeltaTime;
}
