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

namespace Obi
{
	// Token: 0x02000503 RID: 1283
	public class ObiEdgeShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x06009467 RID: 37991 RVA: 0x00261FA4 File Offset: 0x002601A4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639778, XrefRangeEnd = 639782, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiEdgeShapeTracker2D(EdgeCollider2D collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiEdgeShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_EdgeCollider2D_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009468 RID: 37992 RVA: 0x00262008 File Offset: 0x00260208
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 639805, RefRangeEnd = 639807, XrefRangeStart = 639782, XrefRangeEnd = 639805, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void UpdateEdgeData()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiEdgeShapeTracker2D.NativeMethodInfoPtr_UpdateEdgeData_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009469 RID: 37993 RVA: 0x0026204C File Offset: 0x0026024C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639807, XrefRangeEnd = 639821, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void UpdateIfNeeded()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ObiEdgeShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600946A RID: 37994 RVA: 0x0026209C File Offset: 0x0026029C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639821, XrefRangeEnd = 639824, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void Destroy()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ObiEdgeShapeTracker2D.NativeMethodInfoPtr_Destroy_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600946B RID: 37995 RVA: 0x002620EC File Offset: 0x002602EC
		// Note: this type is marked as 'beforefieldinit'.
		static ObiEdgeShapeTracker2D()
		{
			Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiEdgeShapeTracker2D");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr);
			ObiEdgeShapeTracker2D.NativeFieldInfoPtr_pointCount = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, "pointCount");
			ObiEdgeShapeTracker2D.NativeFieldInfoPtr_pointsHandle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, "pointsHandle");
			ObiEdgeShapeTracker2D.NativeFieldInfoPtr_indicesHandle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, "indicesHandle");
			ObiEdgeShapeTracker2D.NativeFieldInfoPtr_edgeDataHasChanged = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, "edgeDataHasChanged");
			ObiEdgeShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_EdgeCollider2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, 100674760);
			ObiEdgeShapeTracker2D.NativeMethodInfoPtr_UpdateEdgeData_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, 100674761);
			ObiEdgeShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, 100674762);
			ObiEdgeShapeTracker2D.NativeMethodInfoPtr_Destroy_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, 100674763);
		}

		// Token: 0x0600946C RID: 37996 RVA: 0x00261B08 File Offset: 0x0025FD08
		public ObiEdgeShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003255 RID: 12885
		// (get) Token: 0x0600946D RID: 37997 RVA: 0x002621BC File Offset: 0x002603BC
		// (set) Token: 0x0600946E RID: 37998 RVA: 0x002621E4 File Offset: 0x002603E4
		public unsafe int pointCount
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_pointCount);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_pointCount)) = value;
			}
		}

		// Token: 0x17003256 RID: 12886
		// (get) Token: 0x0600946F RID: 37999 RVA: 0x00262208 File Offset: 0x00260408
		// (set) Token: 0x06009470 RID: 38000 RVA: 0x00262230 File Offset: 0x00260430
		public unsafe GCHandle pointsHandle
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_pointsHandle);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_pointsHandle)) = value;
			}
		}

		// Token: 0x17003257 RID: 12887
		// (get) Token: 0x06009471 RID: 38001 RVA: 0x00262254 File Offset: 0x00260454
		// (set) Token: 0x06009472 RID: 38002 RVA: 0x0026227C File Offset: 0x0026047C
		public unsafe GCHandle indicesHandle
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_indicesHandle);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_indicesHandle)) = value;
			}
		}

		// Token: 0x17003258 RID: 12888
		// (get) Token: 0x06009473 RID: 38003 RVA: 0x002622A0 File Offset: 0x002604A0
		// (set) Token: 0x06009474 RID: 38004 RVA: 0x002622C8 File Offset: 0x002604C8
		public unsafe bool edgeDataHasChanged
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_edgeDataHasChanged);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEdgeShapeTracker2D.NativeFieldInfoPtr_edgeDataHasChanged)) = value;
			}
		}

		// Token: 0x04006307 RID: 25351
		private static readonly IntPtr NativeFieldInfoPtr_pointCount;

		// Token: 0x04006308 RID: 25352
		private static readonly IntPtr NativeFieldInfoPtr_pointsHandle;

		// Token: 0x04006309 RID: 25353
		private static readonly IntPtr NativeFieldInfoPtr_indicesHandle;

		// Token: 0x0400630A RID: 25354
		private static readonly IntPtr NativeFieldInfoPtr_edgeDataHasChanged;

		// Token: 0x0400630B RID: 25355
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_EdgeCollider2D_0;

		// Token: 0x0400630C RID: 25356
		private static readonly IntPtr NativeMethodInfoPtr_UpdateEdgeData_Public_Void_0;

		// Token: 0x0400630D RID: 25357
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;

		// Token: 0x0400630E RID: 25358
		private static readonly IntPtr NativeMethodInfoPtr_Destroy_Public_Virtual_Void_0;
	}
}
