using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.InputSystem;

// Token: 0x02000142 RID: 322
[Token(Token = "0x2000142")]
public class CharacterMovementCalculator
{
	// Token: 0x06001074 RID: 4212 RVA: 0x00026738 File Offset: 0x00024938
	[Token(Token = "0x6001074")]
	[Address(RVA = "0x3F1EE0", Offset = "0x3F0CE0", VA = "0x1803F1EE0")]
	public void UpdateCharacterController(ICharacterController characterController)
	{
		/*
An exception occurred when decompiling this method (06001074)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void CharacterMovementCalculator::UpdateCharacterController(ICharacterController)

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stfld:ICharacterController(CharacterMovementCalculator::characterController, ldloc:CharacterMovementCalculator(this), ldloc:ICharacterController(characterController)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   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 123
   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: 0x06001075 RID: 4213 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001075")]
	[Address(RVA = "0xE85600", Offset = "0xE84400", VA = "0x180E85600")]
	public void OnUpKeyPressed(InputAction.CallbackContext context)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001076 RID: 4214 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001076")]
	[Address(RVA = "0xE85380", Offset = "0xE84180", VA = "0x180E85380")]
	public void OnDownKeyPressed(InputAction.CallbackContext context)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001077 RID: 4215 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001077")]
	[Address(RVA = "0xE854A0", Offset = "0xE842A0", VA = "0x180E854A0")]
	public void OnLeftKeyPressed(InputAction.CallbackContext context)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001078 RID: 4216 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001078")]
	[Address(RVA = "0xE85550", Offset = "0xE84350", VA = "0x180E85550")]
	public void OnRightKeyPressed(InputAction.CallbackContext context)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001079 RID: 4217 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001079")]
	[Address(RVA = "0xE85310", Offset = "0xE84110", VA = "0x180E85310")]
	private void CalculateKeyboardInput()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600107A RID: 4218 RVA: 0x0002674C File Offset: 0x0002494C
	[Token(Token = "0x600107A")]
	[Address(RVA = "0xE85430", Offset = "0xE84230", VA = "0x180E85430")]
	public void OnJoyStickChanged(InputAction.CallbackContext context)
	{
		Vector2 vector = context.ReadValue<Vector2>();
		if (this.characterController != 0)
		{
		}
	}

	// Token: 0x0600107B RID: 4219 RVA: 0x0002676C File Offset: 0x0002496C
	[Token(Token = "0x600107B")]
	[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
	public CharacterMovementCalculator()
	{
	}

	// Token: 0x04001B1C RID: 6940
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x4001B1C")]
	private bool onUpKeyPressed;

	// Token: 0x04001B1D RID: 6941
	[FieldOffset(Offset = "0x11")]
	[Token(Token = "0x4001B1D")]
	private bool onDownKeyPressed;

	// Token: 0x04001B1E RID: 6942
	[FieldOffset(Offset = "0x12")]
	[Token(Token = "0x4001B1E")]
	private bool onLeftKeyPressed;

	// Token: 0x04001B1F RID: 6943
	[FieldOffset(Offset = "0x13")]
	[Token(Token = "0x4001B1F")]
	private bool onRightKeyPressed;

	// Token: 0x04001B20 RID: 6944
	[FieldOffset(Offset = "0x14")]
	[Token(Token = "0x4001B20")]
	private float verticalInput;

	// Token: 0x04001B21 RID: 6945
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4001B21")]
	private float horizontalInput;

	// Token: 0x04001B22 RID: 6946
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4001B22")]
	private ICharacterController characterController;
}
