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

namespace Obi
{
	// Token: 0x020004AB RID: 1195
	public class ObiEdgeShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x06008C14 RID: 35860 RVA: 0x0023F268 File Offset: 0x0023D468
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607468, XrefRangeEnd = 607472, 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: 0x06008C15 RID: 35861 RVA: 0x0023F2CC File Offset: 0x0023D4CC
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 607495, RefRangeEnd = 607497, XrefRangeStart = 607472, XrefRangeEnd = 607495, 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: 0x06008C16 RID: 35862 RVA: 0x0023F310 File Offset: 0x0023D510
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607497, XrefRangeEnd = 607511, 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: 0x06008C17 RID: 35863 RVA: 0x0023F360 File Offset: 0x0023D560
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607511, XrefRangeEnd = 607514, 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: 0x06008C18 RID: 35864 RVA: 0x0023F3B0 File Offset: 0x0023D5B0
		// 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, 100674047);
			ObiEdgeShapeTracker2D.NativeMethodInfoPtr_UpdateEdgeData_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, 100674048);
			ObiEdgeShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, 100674049);
			ObiEdgeShapeTracker2D.NativeMethodInfoPtr_Destroy_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEdgeShapeTracker2D>.NativeClassPtr, 100674050);
		}

		// Token: 0x06008C19 RID: 35865 RVA: 0x0023EDCC File Offset: 0x0023CFCC
		public ObiEdgeShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002FBA RID: 12218
		// (get) Token: 0x06008C1A RID: 35866 RVA: 0x0023F480 File Offset: 0x0023D680
		// (set) Token: 0x06008C1B RID: 35867 RVA: 0x0023F4A8 File Offset: 0x0023D6A8
		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: 0x17002FBB RID: 12219
		// (get) Token: 0x06008C1C RID: 35868 RVA: 0x0023F4CC File Offset: 0x0023D6CC
		// (set) Token: 0x06008C1D RID: 35869 RVA: 0x0023F4F4 File Offset: 0x0023D6F4
		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: 0x17002FBC RID: 12220
		// (get) Token: 0x06008C1E RID: 35870 RVA: 0x0023F518 File Offset: 0x0023D718
		// (set) Token: 0x06008C1F RID: 35871 RVA: 0x0023F540 File Offset: 0x0023D740
		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: 0x17002FBD RID: 12221
		// (get) Token: 0x06008C20 RID: 35872 RVA: 0x0023F564 File Offset: 0x0023D764
		// (set) Token: 0x06008C21 RID: 35873 RVA: 0x0023F58C File Offset: 0x0023D78C
		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: 0x04005D5E RID: 23902
		private static readonly IntPtr NativeFieldInfoPtr_pointCount;

		// Token: 0x04005D5F RID: 23903
		private static readonly IntPtr NativeFieldInfoPtr_pointsHandle;

		// Token: 0x04005D60 RID: 23904
		private static readonly IntPtr NativeFieldInfoPtr_indicesHandle;

		// Token: 0x04005D61 RID: 23905
		private static readonly IntPtr NativeFieldInfoPtr_edgeDataHasChanged;

		// Token: 0x04005D62 RID: 23906
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_EdgeCollider2D_0;

		// Token: 0x04005D63 RID: 23907
		private static readonly IntPtr NativeMethodInfoPtr_UpdateEdgeData_Public_Void_0;

		// Token: 0x04005D64 RID: 23908
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;

		// Token: 0x04005D65 RID: 23909
		private static readonly IntPtr NativeMethodInfoPtr_Destroy_Public_Virtual_Void_0;
	}
}
