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

namespace RootMotion.FinalIK
{
	// Token: 0x02000401 RID: 1025
	[Serializable]
	public class Constraint : Il2CppSystem.Object
	{
		// Token: 0x17002A32 RID: 10802
		// (get) Token: 0x06007B86 RID: 31622 RVA: 0x001F7280 File Offset: 0x001F5480
		public unsafe bool isValid
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 594140, XrefRangeEnd = 594144, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Constraint.NativeMethodInfoPtr_get_isValid_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06007B87 RID: 31623 RVA: 0x001F72D0 File Offset: 0x001F54D0
		[CallerCount(0)]
		public unsafe virtual void UpdateConstraint()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), Constraint.NativeMethodInfoPtr_UpdateConstraint_Public_Abstract_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007B88 RID: 31624 RVA: 0x001F7320 File Offset: 0x001F5520
		[CallerCount(1642)]
		[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe Constraint()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<Constraint>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Constraint.NativeMethodInfoPtr__ctor_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007B89 RID: 31625 RVA: 0x001F736C File Offset: 0x001F556C
		// Note: this type is marked as 'beforefieldinit'.
		static Constraint()
		{
			Il2CppClassPointerStore<Constraint>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "Constraint");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Constraint>.NativeClassPtr);
			Constraint.NativeFieldInfoPtr_transform = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraint>.NativeClassPtr, "transform");
			Constraint.NativeFieldInfoPtr_weight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Constraint>.NativeClassPtr, "weight");
			Constraint.NativeMethodInfoPtr_get_isValid_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraint>.NativeClassPtr, 100672572);
			Constraint.NativeMethodInfoPtr_UpdateConstraint_Public_Abstract_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraint>.NativeClassPtr, 100672573);
			Constraint.NativeMethodInfoPtr__ctor_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Constraint>.NativeClassPtr, 100672574);
		}

		// Token: 0x06007B8A RID: 31626 RVA: 0x0000A688 File Offset: 0x00008888
		public Constraint(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A30 RID: 10800
		// (get) Token: 0x06007B8B RID: 31627 RVA: 0x001F7400 File Offset: 0x001F5600
		// (set) Token: 0x06007B8C RID: 31628 RVA: 0x001F7434 File Offset: 0x001F5634
		public unsafe Transform transform
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraint.NativeFieldInfoPtr_transform);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraint.NativeFieldInfoPtr_transform), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002A31 RID: 10801
		// (get) Token: 0x06007B8D RID: 31629 RVA: 0x001F745C File Offset: 0x001F565C
		// (set) Token: 0x06007B8E RID: 31630 RVA: 0x001F7484 File Offset: 0x001F5684
		public unsafe float weight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraint.NativeFieldInfoPtr_weight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Constraint.NativeFieldInfoPtr_weight)) = value;
			}
		}

		// Token: 0x04005292 RID: 21138
		private static readonly IntPtr NativeFieldInfoPtr_transform;

		// Token: 0x04005293 RID: 21139
		private static readonly IntPtr NativeFieldInfoPtr_weight;

		// Token: 0x04005294 RID: 21140
		private static readonly IntPtr NativeMethodInfoPtr_get_isValid_Public_get_Boolean_0;

		// Token: 0x04005295 RID: 21141
		private static readonly IntPtr NativeMethodInfoPtr_UpdateConstraint_Public_Abstract_Virtual_New_Void_0;

		// Token: 0x04005296 RID: 21142
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Protected_Void_0;
	}
}
