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

namespace RootMotion.Demos
{
	// Token: 0x02000438 RID: 1080
	public class RecoilTest : MonoBehaviour
	{
		// Token: 0x0600816E RID: 33134 RVA: 0x00210A5C File Offset: 0x0020EC5C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625175, XrefRangeEnd = 625179, 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: 0x0600816F RID: 33135 RVA: 0x00210AA0 File Offset: 0x0020ECA0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625179, XrefRangeEnd = 625182, 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: 0x06008170 RID: 33136 RVA: 0x00210AE4 File Offset: 0x0020ECE4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625182, XrefRangeEnd = 625192, 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: 0x06008171 RID: 33137 RVA: 0x00210B28 File Offset: 0x0020ED28
		[CallerCount(8)]
		[CachedScanResults(RefRangeStart = 616294, RefRangeEnd = 616302, XrefRangeStart = 616294, XrefRangeEnd = 616302, 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: 0x06008172 RID: 33138 RVA: 0x00210B74 File Offset: 0x0020ED74
		// 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, 100673120);
			RecoilTest.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, 100673121);
			RecoilTest.NativeMethodInfoPtr_OnGUI_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, 100673122);
			RecoilTest.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RecoilTest>.NativeClassPtr, 100673123);
		}

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

		// Token: 0x17002BFB RID: 11259
		// (get) Token: 0x06008174 RID: 33140 RVA: 0x00210C1C File Offset: 0x0020EE1C
		// (set) Token: 0x06008175 RID: 33141 RVA: 0x00210C44 File Offset: 0x0020EE44
		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: 0x17002BFC RID: 11260
		// (get) Token: 0x06008176 RID: 33142 RVA: 0x00210C68 File Offset: 0x0020EE68
		// (set) Token: 0x06008177 RID: 33143 RVA: 0x00210C9C File Offset: 0x0020EE9C
		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: 0x040056B6 RID: 22198
		private static readonly IntPtr NativeFieldInfoPtr_magnitude;

		// Token: 0x040056B7 RID: 22199
		private static readonly IntPtr NativeFieldInfoPtr_recoil;

		// Token: 0x040056B8 RID: 22200
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x040056B9 RID: 22201
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x040056BA RID: 22202
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Private_Void_0;

		// Token: 0x040056BB RID: 22203
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
