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

// Token: 0x0200014D RID: 333
public class CharacterMovementCalculator : Object
{
	// Token: 0x06004243 RID: 16963 RVA: 0x0010601C File Offset: 0x0010421C
	[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: 0x06004244 RID: 16964 RVA: 0x00106078 File Offset: 0x00104278
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 537343, XrefRangeEnd = 537349, 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: 0x06004245 RID: 16965 RVA: 0x001060D8 File Offset: 0x001042D8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 537349, XrefRangeEnd = 537355, 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: 0x06004246 RID: 16966 RVA: 0x00106138 File Offset: 0x00104338
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 537355, XrefRangeEnd = 537361, 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: 0x06004247 RID: 16967 RVA: 0x00106198 File Offset: 0x00104398
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 537361, XrefRangeEnd = 537367, 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: 0x06004248 RID: 16968 RVA: 0x001061F8 File Offset: 0x001043F8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 537367, XrefRangeEnd = 537371, 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: 0x06004249 RID: 16969 RVA: 0x0010623C File Offset: 0x0010443C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 537371, XrefRangeEnd = 537377, 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: 0x0600424A RID: 16970 RVA: 0x0010629C File Offset: 0x0010449C
	[CallerCount(1642)]
	[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, 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: 0x0600424B RID: 16971 RVA: 0x001062E8 File Offset: 0x001044E8
	// 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, 100667508);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnUpKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667509);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnDownKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667510);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnLeftKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667511);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnRightKeyPressed_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667512);
		CharacterMovementCalculator.NativeMethodInfoPtr_CalculateKeyboardInput_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667513);
		CharacterMovementCalculator.NativeMethodInfoPtr_OnJoyStickChanged_Public_Void_CallbackContext_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667514);
		CharacterMovementCalculator.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CharacterMovementCalculator>.NativeClassPtr, 100667515);
	}

	// Token: 0x0600424C RID: 16972 RVA: 0x0000A688 File Offset: 0x00008888
	public CharacterMovementCalculator(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001850 RID: 6224
	// (get) Token: 0x0600424D RID: 16973 RVA: 0x00106444 File Offset: 0x00104644
	// (set) Token: 0x0600424E RID: 16974 RVA: 0x0010646C File Offset: 0x0010466C
	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: 0x17001851 RID: 6225
	// (get) Token: 0x0600424F RID: 16975 RVA: 0x00106490 File Offset: 0x00104690
	// (set) Token: 0x06004250 RID: 16976 RVA: 0x001064B8 File Offset: 0x001046B8
	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: 0x17001852 RID: 6226
	// (get) Token: 0x06004251 RID: 16977 RVA: 0x001064DC File Offset: 0x001046DC
	// (set) Token: 0x06004252 RID: 16978 RVA: 0x00106504 File Offset: 0x00104704
	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: 0x17001853 RID: 6227
	// (get) Token: 0x06004253 RID: 16979 RVA: 0x00106528 File Offset: 0x00104728
	// (set) Token: 0x06004254 RID: 16980 RVA: 0x00106550 File Offset: 0x00104750
	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: 0x17001854 RID: 6228
	// (get) Token: 0x06004255 RID: 16981 RVA: 0x00106574 File Offset: 0x00104774
	// (set) Token: 0x06004256 RID: 16982 RVA: 0x0010659C File Offset: 0x0010479C
	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: 0x17001855 RID: 6229
	// (get) Token: 0x06004257 RID: 16983 RVA: 0x001065C0 File Offset: 0x001047C0
	// (set) Token: 0x06004258 RID: 16984 RVA: 0x001065E8 File Offset: 0x001047E8
	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: 0x17001856 RID: 6230
	// (get) Token: 0x06004259 RID: 16985 RVA: 0x0010660C File Offset: 0x0010480C
	// (set) Token: 0x0600425A RID: 16986 RVA: 0x00106640 File Offset: 0x00104840
	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: 0x04002B92 RID: 11154
	private static readonly IntPtr NativeFieldInfoPtr_onUpKeyPressed;

	// Token: 0x04002B93 RID: 11155
	private static readonly IntPtr NativeFieldInfoPtr_onDownKeyPressed;

	// Token: 0x04002B94 RID: 11156
	private static readonly IntPtr NativeFieldInfoPtr_onLeftKeyPressed;

	// Token: 0x04002B95 RID: 11157
	private static readonly IntPtr NativeFieldInfoPtr_onRightKeyPressed;

	// Token: 0x04002B96 RID: 11158
	private static readonly IntPtr NativeFieldInfoPtr_verticalInput;

	// Token: 0x04002B97 RID: 11159
	private static readonly IntPtr NativeFieldInfoPtr_horizontalInput;

	// Token: 0x04002B98 RID: 11160
	private static readonly IntPtr NativeFieldInfoPtr_characterController;

	// Token: 0x04002B99 RID: 11161
	private static readonly IntPtr NativeMethodInfoPtr_UpdateCharacterController_Public_Void_ICharacterController_0;

	// Token: 0x04002B9A RID: 11162
	private static readonly IntPtr NativeMethodInfoPtr_OnUpKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002B9B RID: 11163
	private static readonly IntPtr NativeMethodInfoPtr_OnDownKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002B9C RID: 11164
	private static readonly IntPtr NativeMethodInfoPtr_OnLeftKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002B9D RID: 11165
	private static readonly IntPtr NativeMethodInfoPtr_OnRightKeyPressed_Public_Void_CallbackContext_0;

	// Token: 0x04002B9E RID: 11166
	private static readonly IntPtr NativeMethodInfoPtr_CalculateKeyboardInput_Private_Void_0;

	// Token: 0x04002B9F RID: 11167
	private static readonly IntPtr NativeMethodInfoPtr_OnJoyStickChanged_Public_Void_CallbackContext_0;

	// Token: 0x04002BA0 RID: 11168
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
