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

namespace Obi
{
	// Token: 0x0200054D RID: 1357
	public class ObiClothDragger : MonoBehaviour
	{
		// Token: 0x06009934 RID: 39220 RVA: 0x002771F8 File Offset: 0x002753F8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644725, XrefRangeEnd = 644771, 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: 0x06009935 RID: 39221 RVA: 0x0027723C File Offset: 0x0027543C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644771, XrefRangeEnd = 644813, 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: 0x06009936 RID: 39222 RVA: 0x00277280 File Offset: 0x00275480
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644813, XrefRangeEnd = 644823, 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: 0x06009937 RID: 39223 RVA: 0x002772F4 File Offset: 0x002754F4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644823, XrefRangeEnd = 644829, 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: 0x06009938 RID: 39224 RVA: 0x00277368 File Offset: 0x00275568
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644829, XrefRangeEnd = 644844, 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: 0x06009939 RID: 39225 RVA: 0x002773DC File Offset: 0x002755DC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644844, XrefRangeEnd = 644849, 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: 0x0600993A RID: 39226 RVA: 0x00277450 File Offset: 0x00275650
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x0600993B RID: 39227 RVA: 0x0027749C File Offset: 0x0027569C
		// 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, 100675251);
			ObiClothDragger.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100675252);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleReleased_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100675253);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleHeld_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100675254);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticleDragged_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100675255);
			ObiClothDragger.NativeMethodInfoPtr_Picker_OnParticlePicked_Private_Void_Object_ParticlePickEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100675256);
			ObiClothDragger.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiClothDragger>.NativeClassPtr, 100675257);
		}

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

		// Token: 0x170033BB RID: 13243
		// (get) Token: 0x0600993D RID: 39229 RVA: 0x00277594 File Offset: 0x00275794
		// (set) Token: 0x0600993E RID: 39230 RVA: 0x002775C8 File Offset: 0x002757C8
		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: 0x170033BC RID: 13244
		// (get) Token: 0x0600993F RID: 39231 RVA: 0x002775F0 File Offset: 0x002757F0
		// (set) Token: 0x06009940 RID: 39232 RVA: 0x00277618 File Offset: 0x00275818
		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: 0x170033BD RID: 13245
		// (get) Token: 0x06009941 RID: 39233 RVA: 0x0027763C File Offset: 0x0027583C
		// (set) Token: 0x06009942 RID: 39234 RVA: 0x0027765A File Offset: 0x0027585A
		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: 0x04006645 RID: 26181
		private static readonly IntPtr NativeFieldInfoPtr_picker;

		// Token: 0x04006646 RID: 26182
		private static readonly IntPtr NativeFieldInfoPtr_originalMass;

		// Token: 0x04006647 RID: 26183
		private static readonly IntPtr NativeFieldInfoPtr_DRAGGED_PARTICLE_MASS;

		// Token: 0x04006648 RID: 26184
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x04006649 RID: 26185
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x0400664A RID: 26186
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticleReleased_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x0400664B RID: 26187
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticleHeld_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x0400664C RID: 26188
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticleDragged_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x0400664D RID: 26189
		private static readonly IntPtr NativeMethodInfoPtr_Picker_OnParticlePicked_Private_Void_Object_ParticlePickEventArgs_0;

		// Token: 0x0400664E RID: 26190
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
