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

namespace Obi
{
	// Token: 0x02000553 RID: 1363
	public class ObiParticleHandle : MonoBehaviour
	{
		// Token: 0x170033F7 RID: 13303
		// (get) Token: 0x060099DC RID: 39388 RVA: 0x00279F1C File Offset: 0x0027811C
		public unsafe int ParticleCount
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645476, XrefRangeEnd = 645477, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_get_ParticleCount_Public_get_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x170033F8 RID: 13304
		// (get) Token: 0x060099DE RID: 39390 RVA: 0x00279FC8 File Offset: 0x002781C8
		// (set) Token: 0x060099DD RID: 39389 RVA: 0x00279F6C File Offset: 0x0027816C
		public unsafe ObiActor Actor
		{
			[CallerCount(10)]
			[CachedScanResults(RefRangeStart = 7527, RefRangeEnd = 7537, XrefRangeStart = 7527, XrefRangeEnd = 7537, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_get_Actor_Public_get_ObiActor_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new ObiActor(intPtr3) : null;
			}
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645477, XrefRangeEnd = 645506, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			set
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				checked
				{
					IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.Il2CppObjectBaseToPtr(value);
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_set_Actor_Public_set_Void_ObiActor_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				}
			}
		}

		// Token: 0x060099DF RID: 39391 RVA: 0x0027A020 File Offset: 0x00278220
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645506, XrefRangeEnd = 645520, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099E0 RID: 39392 RVA: 0x0027A064 File Offset: 0x00278264
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645520, XrefRangeEnd = 645535, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_OnDisable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099E1 RID: 39393 RVA: 0x0027A0A8 File Offset: 0x002782A8
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 645546, RefRangeEnd = 645548, XrefRangeStart = 645535, XrefRangeEnd = 645546, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void ResetInvMasses()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_ResetInvMasses_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099E2 RID: 39394 RVA: 0x0027A0EC File Offset: 0x002782EC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645548, XrefRangeEnd = 645559, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Clear()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_Clear_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099E3 RID: 39395 RVA: 0x0027A130 File Offset: 0x00278330
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645559, XrefRangeEnd = 645571, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void AddParticle(int index, Vector3 position, float invMass)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref index;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref position;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref invMass;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_AddParticle_Public_Void_Int32_Vector3_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099E4 RID: 39396 RVA: 0x0027A1AC File Offset: 0x002783AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645571, XrefRangeEnd = 645589, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void RemoveParticle(int index)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref index;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr_RemoveParticle_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x060099E5 RID: 39397 RVA: 0x0027A200 File Offset: 0x00278400
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645589, XrefRangeEnd = 645618, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Actor_solver_OnFrameBegin(Il2CppSystem.Object sender, EventArgs 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(ObiParticleHandle.NativeMethodInfoPtr_Actor_solver_OnFrameBegin_Private_Void_Object_EventArgs_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099E6 RID: 39398 RVA: 0x0027A274 File Offset: 0x00278474
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645618, XrefRangeEnd = 645640, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiParticleHandle()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleHandle.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099E7 RID: 39399 RVA: 0x0027A2C0 File Offset: 0x002784C0
		// Note: this type is marked as 'beforefieldinit'.
		static ObiParticleHandle()
		{
			Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiParticleHandle");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr);
			ObiParticleHandle.NativeFieldInfoPtr_actor = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, "actor");
			ObiParticleHandle.NativeFieldInfoPtr_handledParticleIndices = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, "handledParticleIndices");
			ObiParticleHandle.NativeFieldInfoPtr_handledParticlePositions = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, "handledParticlePositions");
			ObiParticleHandle.NativeFieldInfoPtr_handledParticleInvMasses = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, "handledParticleInvMasses");
			ObiParticleHandle.NativeFieldInfoPtr_HANDLED_PARTICLE_MASS = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, "HANDLED_PARTICLE_MASS");
			ObiParticleHandle.NativeMethodInfoPtr_get_ParticleCount_Public_get_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675309);
			ObiParticleHandle.NativeMethodInfoPtr_set_Actor_Public_set_Void_ObiActor_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675310);
			ObiParticleHandle.NativeMethodInfoPtr_get_Actor_Public_get_ObiActor_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675311);
			ObiParticleHandle.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675312);
			ObiParticleHandle.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675313);
			ObiParticleHandle.NativeMethodInfoPtr_ResetInvMasses_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675314);
			ObiParticleHandle.NativeMethodInfoPtr_Clear_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675315);
			ObiParticleHandle.NativeMethodInfoPtr_AddParticle_Public_Void_Int32_Vector3_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675316);
			ObiParticleHandle.NativeMethodInfoPtr_RemoveParticle_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675317);
			ObiParticleHandle.NativeMethodInfoPtr_Actor_solver_OnFrameBegin_Private_Void_Object_EventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675318);
			ObiParticleHandle.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleHandle>.NativeClassPtr, 100675319);
		}

		// Token: 0x060099E8 RID: 39400 RVA: 0x0000351C File Offset: 0x0000171C
		public ObiParticleHandle(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170033F2 RID: 13298
		// (get) Token: 0x060099E9 RID: 39401 RVA: 0x0027A430 File Offset: 0x00278630
		// (set) Token: 0x060099EA RID: 39402 RVA: 0x0027A464 File Offset: 0x00278664
		public unsafe ObiActor actor
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_actor);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new ObiActor(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_actor), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170033F3 RID: 13299
		// (get) Token: 0x060099EB RID: 39403 RVA: 0x0027A48C File Offset: 0x0027868C
		// (set) Token: 0x060099EC RID: 39404 RVA: 0x0027A4C0 File Offset: 0x002786C0
		public unsafe List<int> handledParticleIndices
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_handledParticleIndices);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new List<int>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_handledParticleIndices), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170033F4 RID: 13300
		// (get) Token: 0x060099ED RID: 39405 RVA: 0x0027A4E8 File Offset: 0x002786E8
		// (set) Token: 0x060099EE RID: 39406 RVA: 0x0027A51C File Offset: 0x0027871C
		public unsafe List<Vector3> handledParticlePositions
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_handledParticlePositions);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new List<Vector3>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_handledParticlePositions), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170033F5 RID: 13301
		// (get) Token: 0x060099EF RID: 39407 RVA: 0x0027A544 File Offset: 0x00278744
		// (set) Token: 0x060099F0 RID: 39408 RVA: 0x0027A578 File Offset: 0x00278778
		public unsafe List<float> handledParticleInvMasses
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_handledParticleInvMasses);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new List<float>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleHandle.NativeFieldInfoPtr_handledParticleInvMasses), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170033F6 RID: 13302
		// (get) Token: 0x060099F1 RID: 39409 RVA: 0x0027A5A0 File Offset: 0x002787A0
		// (set) Token: 0x060099F2 RID: 39410 RVA: 0x0027A5BE File Offset: 0x002787BE
		public unsafe static float HANDLED_PARTICLE_MASS
		{
			get
			{
				float num;
				IL2CPP.il2cpp_field_static_get_value(ObiParticleHandle.NativeFieldInfoPtr_HANDLED_PARTICLE_MASS, (void*)(&num));
				return num;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(ObiParticleHandle.NativeFieldInfoPtr_HANDLED_PARTICLE_MASS, (void*)(&value));
			}
		}

		// Token: 0x040066B0 RID: 26288
		private static readonly IntPtr NativeFieldInfoPtr_actor;

		// Token: 0x040066B1 RID: 26289
		private static readonly IntPtr NativeFieldInfoPtr_handledParticleIndices;

		// Token: 0x040066B2 RID: 26290
		private static readonly IntPtr NativeFieldInfoPtr_handledParticlePositions;

		// Token: 0x040066B3 RID: 26291
		private static readonly IntPtr NativeFieldInfoPtr_handledParticleInvMasses;

		// Token: 0x040066B4 RID: 26292
		private static readonly IntPtr NativeFieldInfoPtr_HANDLED_PARTICLE_MASS;

		// Token: 0x040066B5 RID: 26293
		private static readonly IntPtr NativeMethodInfoPtr_get_ParticleCount_Public_get_Int32_0;

		// Token: 0x040066B6 RID: 26294
		private static readonly IntPtr NativeMethodInfoPtr_set_Actor_Public_set_Void_ObiActor_0;

		// Token: 0x040066B7 RID: 26295
		private static readonly IntPtr NativeMethodInfoPtr_get_Actor_Public_get_ObiActor_0;

		// Token: 0x040066B8 RID: 26296
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x040066B9 RID: 26297
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x040066BA RID: 26298
		private static readonly IntPtr NativeMethodInfoPtr_ResetInvMasses_Private_Void_0;

		// Token: 0x040066BB RID: 26299
		private static readonly IntPtr NativeMethodInfoPtr_Clear_Public_Void_0;

		// Token: 0x040066BC RID: 26300
		private static readonly IntPtr NativeMethodInfoPtr_AddParticle_Public_Void_Int32_Vector3_Single_0;

		// Token: 0x040066BD RID: 26301
		private static readonly IntPtr NativeMethodInfoPtr_RemoveParticle_Public_Void_Int32_0;

		// Token: 0x040066BE RID: 26302
		private static readonly IntPtr NativeMethodInfoPtr_Actor_solver_OnFrameBegin_Private_Void_Object_EventArgs_0;

		// Token: 0x040066BF RID: 26303
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
