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

namespace Obi
{
	// Token: 0x020004A8 RID: 1192
	public class ObiBoxShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x06008BFA RID: 35834 RVA: 0x0023EC98 File Offset: 0x0023CE98
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607417, XrefRangeEnd = 607420, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiBoxShapeTracker2D(BoxCollider2D collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiBoxShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_BoxCollider2D_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06008BFB RID: 35835 RVA: 0x0023ECFC File Offset: 0x0023CEFC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607420, XrefRangeEnd = 607432, 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), ObiBoxShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008BFC RID: 35836 RVA: 0x0023ED4C File Offset: 0x0023CF4C
		// Note: this type is marked as 'beforefieldinit'.
		static ObiBoxShapeTracker2D()
		{
			Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiBoxShapeTracker2D");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr);
			ObiBoxShapeTracker2D.NativeFieldInfoPtr_size = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr, "size");
			ObiBoxShapeTracker2D.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr, "center");
			ObiBoxShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_BoxCollider2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr, 100674041);
			ObiBoxShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr, 100674042);
		}

		// Token: 0x06008BFD RID: 35837 RVA: 0x0023EDCC File Offset: 0x0023CFCC
		public ObiBoxShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002FB3 RID: 12211
		// (get) Token: 0x06008BFE RID: 35838 RVA: 0x0023EDD8 File Offset: 0x0023CFD8
		// (set) Token: 0x06008BFF RID: 35839 RVA: 0x0023EE00 File Offset: 0x0023D000
		public unsafe Vector2 size
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker2D.NativeFieldInfoPtr_size);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker2D.NativeFieldInfoPtr_size)) = value;
			}
		}

		// Token: 0x17002FB4 RID: 12212
		// (get) Token: 0x06008C00 RID: 35840 RVA: 0x0023EE24 File Offset: 0x0023D024
		// (set) Token: 0x06008C01 RID: 35841 RVA: 0x0023EE4C File Offset: 0x0023D04C
		public unsafe Vector2 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker2D.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiBoxShapeTracker2D.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04005D51 RID: 23889
		private static readonly IntPtr NativeFieldInfoPtr_size;

		// Token: 0x04005D52 RID: 23890
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04005D53 RID: 23891
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_BoxCollider2D_0;

		// Token: 0x04005D54 RID: 23892
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
