using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020003D9 RID: 985
	public class OffsetEffector : OffsetModifier
	{
		// Token: 0x060078B1 RID: 30897 RVA: 0x001EC4C0 File Offset: 0x001EA6C0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592572, XrefRangeEnd = 592584, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), OffsetEffector.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060078B2 RID: 30898 RVA: 0x001EC510 File Offset: 0x001EA710
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592584, XrefRangeEnd = 592591, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void OnModifyOffset()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), OffsetEffector.NativeMethodInfoPtr_OnModifyOffset_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

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

		// Token: 0x060078B4 RID: 30900 RVA: 0x001EC5AC File Offset: 0x001EA7AC
		// Note: this type is marked as 'beforefieldinit'.
		static OffsetEffector()
		{
			Il2CppClassPointerStore<OffsetEffector>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "OffsetEffector");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<OffsetEffector>.NativeClassPtr);
			OffsetEffector.NativeFieldInfoPtr_effectorLinks = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetEffector>.NativeClassPtr, "effectorLinks");
			OffsetEffector.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetEffector>.NativeClassPtr, 100672383);
			OffsetEffector.NativeMethodInfoPtr_OnModifyOffset_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetEffector>.NativeClassPtr, 100672384);
			OffsetEffector.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetEffector>.NativeClassPtr, 100672385);
		}

		// Token: 0x060078B5 RID: 30901 RVA: 0x001E5C80 File Offset: 0x001E3E80
		public OffsetEffector(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700293D RID: 10557
		// (get) Token: 0x060078B6 RID: 30902 RVA: 0x001EC62C File Offset: 0x001EA82C
		// (set) Token: 0x060078B7 RID: 30903 RVA: 0x001EC660 File Offset: 0x001EA860
		public unsafe Il2CppReferenceArray<OffsetEffector.EffectorLink> effectorLinks
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.NativeFieldInfoPtr_effectorLinks);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppReferenceArray<OffsetEffector.EffectorLink>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.NativeFieldInfoPtr_effectorLinks), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040050D3 RID: 20691
		private static readonly IntPtr NativeFieldInfoPtr_effectorLinks;

		// Token: 0x040050D4 RID: 20692
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_Void_0;

		// Token: 0x040050D5 RID: 20693
		private static readonly IntPtr NativeMethodInfoPtr_OnModifyOffset_Protected_Virtual_Void_0;

		// Token: 0x040050D6 RID: 20694
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x020003DA RID: 986
		[Serializable]
		public class EffectorLink : Il2CppSystem.Object
		{
			// Token: 0x060078B8 RID: 30904 RVA: 0x001EC688 File Offset: 0x001EA888
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			public unsafe EffectorLink()
				: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<OffsetEffector.EffectorLink>.NativeClassPtr))
			{
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OffsetEffector.EffectorLink.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}

			// Token: 0x060078B9 RID: 30905 RVA: 0x001EC6D4 File Offset: 0x001EA8D4
			// Note: this type is marked as 'beforefieldinit'.
			static EffectorLink()
			{
				Il2CppClassPointerStore<OffsetEffector.EffectorLink>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<OffsetEffector>.NativeClassPtr, "EffectorLink");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<OffsetEffector.EffectorLink>.NativeClassPtr);
				OffsetEffector.EffectorLink.NativeFieldInfoPtr_effectorType = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetEffector.EffectorLink>.NativeClassPtr, "effectorType");
				OffsetEffector.EffectorLink.NativeFieldInfoPtr_weightMultiplier = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetEffector.EffectorLink>.NativeClassPtr, "weightMultiplier");
				OffsetEffector.EffectorLink.NativeFieldInfoPtr_localPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OffsetEffector.EffectorLink>.NativeClassPtr, "localPosition");
				OffsetEffector.EffectorLink.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OffsetEffector.EffectorLink>.NativeClassPtr, 100672386);
			}

			// Token: 0x060078BA RID: 30906 RVA: 0x0000A688 File Offset: 0x00008888
			public EffectorLink(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x1700293E RID: 10558
			// (get) Token: 0x060078BB RID: 30907 RVA: 0x001EC750 File Offset: 0x001EA950
			// (set) Token: 0x060078BC RID: 30908 RVA: 0x001EC778 File Offset: 0x001EA978
			public unsafe FullBodyBipedEffector effectorType
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.EffectorLink.NativeFieldInfoPtr_effectorType);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.EffectorLink.NativeFieldInfoPtr_effectorType)) = value;
				}
			}

			// Token: 0x1700293F RID: 10559
			// (get) Token: 0x060078BD RID: 30909 RVA: 0x001EC79C File Offset: 0x001EA99C
			// (set) Token: 0x060078BE RID: 30910 RVA: 0x001EC7C4 File Offset: 0x001EA9C4
			public unsafe float weightMultiplier
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.EffectorLink.NativeFieldInfoPtr_weightMultiplier);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.EffectorLink.NativeFieldInfoPtr_weightMultiplier)) = value;
				}
			}

			// Token: 0x17002940 RID: 10560
			// (get) Token: 0x060078BF RID: 30911 RVA: 0x001EC7E8 File Offset: 0x001EA9E8
			// (set) Token: 0x060078C0 RID: 30912 RVA: 0x001EC810 File Offset: 0x001EAA10
			public unsafe Vector3 localPosition
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.EffectorLink.NativeFieldInfoPtr_localPosition);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OffsetEffector.EffectorLink.NativeFieldInfoPtr_localPosition)) = value;
				}
			}

			// Token: 0x040050D7 RID: 20695
			private static readonly IntPtr NativeFieldInfoPtr_effectorType;

			// Token: 0x040050D8 RID: 20696
			private static readonly IntPtr NativeFieldInfoPtr_weightMultiplier;

			// Token: 0x040050D9 RID: 20697
			private static readonly IntPtr NativeFieldInfoPtr_localPosition;

			// Token: 0x040050DA RID: 20698
			private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
		}
	}
}
