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

namespace Obi
{
	// Token: 0x020004F5 RID: 1269
	public class ObiClothDragger : MonoBehaviour
	{
		// Token: 0x060090E1 RID: 37089 RVA: 0x002544BC File Offset: 0x002526BC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612415, XrefRangeEnd = 612461, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiClothDragger.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090E2 RID: 37090 RVA: 0x00254500 File Offset: 0x00252700
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612461, XrefRangeEnd = 612503, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiClothDragger.NativeMethodInfoPtr_OnDisable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090E3 RID: 37091 RVA: 0x00254544 File Offset: 0x00252744
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612503, XrefRangeEnd = 612513, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Picker_OnParticleReleased(Il2CppSystem.Object sender, ObiClothPicker.ParticlePickEventArgs e)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(sender);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(e);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleReleased_Private_Void_Object_ParticlePickEventArgs_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090E4 RID: 37092 RVA: 0x002545B8 File Offset: 0x002527B8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612513, XrefRangeEnd = 612519, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Picker_OnParticleHeld(Il2CppSystem.Object sender, ObiClothPicker.ParticlePickEventArgs e)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(sender);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(e);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleHeld_Private_Void_Object_ParticlePickEventArgs_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090E5 RID: 37093 RVA: 0x0025462C File Offset: 0x0025282C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612519, XrefRangeEnd = 612534, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Picker_OnParticleDragged(Il2CppSystem.Object sender, ObiClothPicker.ParticlePickEventArgs e)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(sender);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(e);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleDragged_Private_Void_Object_ParticlePickEventArgs_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090E6 RID: 37094 RVA: 0x002546A0 File Offset: 0x002528A0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612534, XrefRangeEnd = 612539, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Picker_OnParticlePicked(Il2CppSystem.Object sender, ObiClothPicker.ParticlePickEventArgs e)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(sender);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(e);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticlePicked_Private_Void_Object_ParticlePickEventArgs_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090E7 RID: 37095 RVA: 0x00254714 File Offset: 0x00252914
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiClothDragger()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiClothDragger.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090E8 RID: 37096 RVA: 0x00254760 File Offset: 0x00252960
		// Note: this type is marked as 'beforefieldinit'.
		static ObiClothDragger()
		{
			Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiClothDragger");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr);
			ObiClothDragger.NativeFieldInfoPtr_picker = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, "picker");
			ObiClothDragger.NativeFieldInfoPtr_originalMass = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, "originalMass");
			ObiClothDragger.NativeFieldInfoPtr_DRAGGED_PARTICLE_MASS = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, "DRAGGED_PARTICLE_MASS");
			ObiClothDragger.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100674538);
			ObiClothDragger.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100674539);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleReleased_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100674540);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleHeld_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100674541);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleDragged_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100674542);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticlePicked_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100674543);
			ObiClothDragger.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100674544);
		}

		// Token: 0x060090E9 RID: 37097 RVA: 0x0000351C File Offset: 0x0000171C
		public ObiClothDragger(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003120 RID: 12576
		// (get) Token: 0x060090EA RID: 37098 RVA: 0x00254858 File Offset: 0x00252A58
		// (set) Token: 0x060090EB RID: 37099 RVA: 0x0025488C File Offset: 0x00252A8C
		public unsafe ObiClothPicker picker
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiClothDragger.NativeFieldInfoPtr_picker);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new ObiClothPicker(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiClothDragger.NativeFieldInfoPtr_picker), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003121 RID: 12577
		// (get) Token: 0x060090EC RID: 37100 RVA: 0x002548B4 File Offset: 0x00252AB4
		// (set) Token: 0x060090ED RID: 37101 RVA: 0x002548DC File Offset: 0x00252ADC
		public unsafe float originalMass
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiClothDragger.NativeFieldInfoPtr_originalMass);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiClothDragger.NativeFieldInfoPtr_originalMass)) = value;
			}
		}

		// Token: 0x17003122 RID: 12578
		// (get) Token: 0x060090EE RID: 37102 RVA: 0x00254900 File Offset: 0x00252B00
		// (set) Token: 0x060090EF RID: 37103 RVA: 0x0025491E File Offset: 0x00252B1E
		public unsafe static float DRAGGED_PARTICLE_MASS
		{
			get
			{
				float num;
				IL2CPP.il2cpp_field_static_get_value(ObiClothDragger.NativeFieldInfoPtr_DRAGGED_PARTICLE_MASS, (void*)(&num));
				return num;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(ObiClothDragger.NativeFieldInfoPtr_DRAGGED_PARTICLE_MASS, (void*)(&value));
			}
		}

		// Token: 0x0400609C RID: 24732
		private static readonly IntPtr NativeFieldInfoPtr_picker;

		// Token: 0x0400609D RID: 24733
		private static readonly IntPtr NativeFieldInfoPtr_originalMass;

		// Token: 0x0400609E RID: 24734
		private static readonly IntPtr NativeFieldInfoPtr_DRAGGED_PARTICLE_MASS;

		// Token: 0x0400609F RID: 24735
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x040060A0 RID: 24736
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x040060A1 RID: 24737
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticleReleased_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x040060A2 RID: 24738
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticleHeld_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x040060A3 RID: 24739
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticleDragged_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x040060A4 RID: 24740
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticlePicked_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x040060A5 RID: 24741
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
