using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using UnityEngine.InputSystem;

// Token: 0x02000179 RID: 377
public class CharacterMovementCalculator : Object
{
	// Token: 0x0600467C RID: 18044 RVA: 0x00117E70 File Offset: 0x00116070
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateCharacterController(ICharacterController characterController)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(characterController);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr_UpdateCharacterController_Public_Void_ICharacterController_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600467D RID: 18045 RVA: 0x00117ECC File Offset: 0x001160CC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564241, XrefRangeEnd = 564247, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnUpKeyPressed(InputAction.CallbackContext context)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(context));
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr_OnUpKeyPressed_Public_Void_CallbackContext_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600467E RID: 18046 RVA: 0x00117F2C File Offset: 0x0011612C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564247, XrefRangeEnd = 564253, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnDownKeyPressed(InputAction.CallbackContext context)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(context));
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr_OnDownKeyPressed_Public_Void_CallbackContext_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600467F RID: 18047 RVA: 0x00117F8C File Offset: 0x0011618C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564253, XrefRangeEnd = 564259, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnLeftKeyPressed(InputAction.CallbackContext context)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(context));
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr_OnLeftKeyPressed_Public_Void_CallbackContext_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004680 RID: 18048 RVA: 0x00117FEC File Offset: 0x001161EC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564259, XrefRangeEnd = 564265, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnRightKeyPressed(InputAction.CallbackContext context)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(context));
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr_OnRightKeyPressed_Public_Void_CallbackContext_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004681 RID: 18049 RVA: 0x0011804C File Offset: 0x0011624C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564265, XrefRangeEnd = 564269, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void CalculateKeyboardInput()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr_CalculateKeyboardInput_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004682 RID: 18050 RVA: 0x00118090 File Offset: 0x00116290
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564269, XrefRangeEnd = 564275, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnJoyStickChanged(InputAction.CallbackContext context)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(context));
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr_OnJoyStickChanged_Public_Void_CallbackContext_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004683 RID: 18051 RVA: 0x001180F0 File Offset: 0x001162F0
	[CallerCount(1664)]
	[CachedScanResults(RefRangeStart = 7711, RefRangeEnd = 9375, XrefRangeStart = 7711, XrefRangeEnd = 9375, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe CharacterMovementCalculator()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CharacterMovementCalculator.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004684 RID: 18052 RVA: 0x0011813C File Offset: 0x0011633C
	// Note: this type is marked as 'beforefieldinit'.
	static CharacterMovementCalculator()
	{
		Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "CharacterMovementCalculator");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr);
		CharacterMovementCalculator.NativeFieldInfoPtr_onUpKeyPressed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, "onUpKeyPressed");
		CharacterMovementCalculator.NativeFieldInfoPtr_onDownKeyPressed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, "onDownKeyPressed");
		CharacterMovementCalculator.NativeFieldInfoPtr_onLeftKeyPressed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, "onLeftKeyPressed");
		CharacterMovementCalculator.NativeFieldInfoPtr_onRightKeyPressed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, "onRightKeyPressed");
		CharacterMovementCalculator.NativeFieldInfoPtr_verticalInput = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, "verticalInput");
		CharacterMovementCalculator.NativeFieldInfoPtr_horizontalInput = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, "horizontalInput");
		CharacterMovementCalculator.NativeFieldInfoPtr_characterController = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, "characterController");
		CharacterMovementCalculator.NativeMethodInfoPtr_UpdateCharacterController_Public_Void_ICharacterController_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667891);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnUpKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667892);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnDownKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667893);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnLeftKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667894);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnRightKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667895);
		CharacterMovementCalculator.NativeMethodInfoPtr_CalculateKeyboardInput_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667896);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnJoyStickChanged_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667897);
		CharacterMovementCalculator.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667898);
	}

	// Token: 0x06004685 RID: 18053 RVA: 0x0000A74C File Offset: 0x0000894C
	public CharacterMovementCalculator(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700198E RID: 6542
	// (get) Token: 0x06004686 RID: 18054 RVA: 0x00118298 File Offset: 0x00116498
	// (set) Token: 0x06004687 RID: 18055 RVA: 0x001182C0 File Offset: 0x001164C0
	public unsafe bool onUpKeyPressed
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onUpKeyPressed);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onUpKeyPressed)) = value;
		}
	}

	// Token: 0x1700198F RID: 6543
	// (get) Token: 0x06004688 RID: 18056 RVA: 0x001182E4 File Offset: 0x001164E4
	// (set) Token: 0x06004689 RID: 18057 RVA: 0x0011830C File Offset: 0x0011650C
	public unsafe bool onDownKeyPressed
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onDownKeyPressed);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onDownKeyPressed)) = value;
		}
	}

	// Token: 0x17001990 RID: 6544
	// (get) Token: 0x0600468A RID: 18058 RVA: 0x00118330 File Offset: 0x00116530
	// (set) Token: 0x0600468B RID: 18059 RVA: 0x00118358 File Offset: 0x00116558
	public unsafe bool onLeftKeyPressed
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onLeftKeyPressed);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onLeftKeyPressed)) = value;
		}
	}

	// Token: 0x17001991 RID: 6545
	// (get) Token: 0x0600468C RID: 18060 RVA: 0x0011837C File Offset: 0x0011657C
	// (set) Token: 0x0600468D RID: 18061 RVA: 0x001183A4 File Offset: 0x001165A4
	public unsafe bool onRightKeyPressed
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onRightKeyPressed);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_onRightKeyPressed)) = value;
		}
	}

	// Token: 0x17001992 RID: 6546
	// (get) Token: 0x0600468E RID: 18062 RVA: 0x001183C8 File Offset: 0x001165C8
	// (set) Token: 0x0600468F RID: 18063 RVA: 0x001183F0 File Offset: 0x001165F0
	public unsafe float verticalInput
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_verticalInput);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_verticalInput)) = value;
		}
	}

	// Token: 0x17001993 RID: 6547
	// (get) Token: 0x06004690 RID: 18064 RVA: 0x00118414 File Offset: 0x00116614
	// (set) Token: 0x06004691 RID: 18065 RVA: 0x0011843C File Offset: 0x0011663C
	public unsafe float horizontalInput
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_horizontalInput);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_horizontalInput)) = value;
		}
	}

	// Token: 0x17001994 RID: 6548
	// (get) Token: 0x06004692 RID: 18066 RVA: 0x00118460 File Offset: 0x00116660
	// (set) Token: 0x06004693 RID: 18067 RVA: 0x00118494 File Offset: 0x00116694
	public unsafe ICharacterController characterController
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_characterController);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new ICharacterController(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(CharacterMovementCalculator.NativeFieldInfoPtr_characterController), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04002E7A RID: 11898
	private static readonly IntPtr NativeFieldInfoPtr_onUpKeyPressed;

	// Token: 0x04002E7B RID: 11899
	private static readonly IntPtr NativeFieldInfoPtr_onDownKeyPressed;

	// Token: 0x04002E7C RID: 11900
	private static readonly IntPtr NativeFieldInfoPtr_onLeftKeyPressed;

	// Token: 0x04002E7D RID: 11901
	private static readonly IntPtr NativeFieldInfoPtr_onRightKeyPressed;

	// Token: 0x04002E7E RID: 11902
	private static readonly IntPtr NativeFieldInfoPtr_verticalInput;

	// Token: 0x04002E7F RID: 11903
	private static readonly IntPtr NativeFieldInfoPtr_horizontalInput;

	// Token: 0x04002E80 RID: 11904
	private static readonly IntPtr NativeFieldInfoPtr_characterController;

	// Token: 0x04002E81 RID: 11905
	private static readonly IntPtr NativeMethodInfoPtr_UpdateCharacterController_Public_Void_ICharacterController_0;

	// Token: 0x04002E82 RID: 11906
	private static readonly IntPtr NativeMethodInfoPtr_OnUpKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002E83 RID: 11907
	private static readonly IntPtr NativeMethodInfoPtr_OnDownKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002E84 RID: 11908
	private static readonly IntPtr NativeMethodInfoPtr_OnLeftKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002E85 RID: 11909
	private static readonly IntPtr NativeMethodInfoPtr_OnRightKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002E86 RID: 11910
	private static readonly IntPtr NativeMethodInfoPtr_CalculateKeyboardInput_Private_Void_0;

	// Token: 0x04002E87 RID: 11911
	private static readonly IntPtr NativeMethodInfoPtr_OnJoyStickChanged_Public_Void_CallbackContext_0;

	// Token: 0x04002E88 RID: 11912
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
