using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020003E0 RID: 992
	public class RecoilTest : MonoBehaviour
	{
		// Token: 0x0600791B RID: 31003 RVA: 0x001EDD20 File Offset: 0x001EBF20
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592865, XrefRangeEnd = 592869, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RecoilTest.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600791C RID: 31004 RVA: 0x001EDD64 File Offset: 0x001EBF64
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592869, XrefRangeEnd = 592872, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RecoilTest.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600791D RID: 31005 RVA: 0x001EDDA8 File Offset: 0x001EBFA8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592872, XrefRangeEnd = 592878, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnGUI()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RecoilTest.NativeMethodInfoPtr_OnGUI_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600791E RID: 31006 RVA: 0x001EDDEC File Offset: 0x001EBFEC
		[CallerCount(8)]
		[CachedScanResults(RefRangeStart = 583993, RefRangeEnd = 584001, XrefRangeStart = 583993, XrefRangeEnd = 584001, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe RecoilTest()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RecoilTest.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600791F RID: 31007 RVA: 0x001EDE38 File Offset: 0x001EC038
		// Note: this type is marked as 'beforefieldinit'.
		static RecoilTest()
		{
			Il2CppClassPointerStore<RecoilTest>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "RecoilTest");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr);
			RecoilTest.NativeFieldInfoPtr_magnitude = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, "magnitude");
			RecoilTest.NativeFieldInfoPtr_recoil = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, "recoil");
			RecoilTest.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, 100672407);
			RecoilTest.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, 100672408);
			RecoilTest.NativeMethodInfoPtr_OnGUI_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, 100672409);
			RecoilTest.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, 100672410);
		}

		// Token: 0x06007920 RID: 31008 RVA: 0x0000351C File Offset: 0x0000171C
		public RecoilTest(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002960 RID: 10592
		// (get) Token: 0x06007921 RID: 31009 RVA: 0x001EDEE0 File Offset: 0x001EC0E0
		// (set) Token: 0x06007922 RID: 31010 RVA: 0x001EDF08 File Offset: 0x001EC108
		public unsafe float magnitude
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RecoilTest.NativeFieldInfoPtr_magnitude);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RecoilTest.NativeFieldInfoPtr_magnitude)) = value;
			}
		}

		// Token: 0x17002961 RID: 10593
		// (get) Token: 0x06007923 RID: 31011 RVA: 0x001EDF2C File Offset: 0x001EC12C
		// (set) Token: 0x06007924 RID: 31012 RVA: 0x001EDF60 File Offset: 0x001EC160
		public unsafe Recoil recoil
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(RecoilTest.NativeFieldInfoPtr_recoil);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Recoil(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(RecoilTest.NativeFieldInfoPtr_recoil), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x0400510D RID: 20749
		private static readonly IntPtr NativeFieldInfoPtr_magnitude;

		// Token: 0x0400510E RID: 20750
		private static readonly IntPtr NativeFieldInfoPtr_recoil;

		// Token: 0x0400510F RID: 20751
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04005110 RID: 20752
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005111 RID: 20753
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Private_Void_0;

		// Token: 0x04005112 RID: 20754
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
