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

namespace Obi
{
	// Token: 0x02000500 RID: 1280
	public class ObiBoxShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x0600944D RID: 37965 RVA: 0x002619D4 File Offset: 0x0025FBD4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639727, XrefRangeEnd = 639730, 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: 0x0600944E RID: 37966 RVA: 0x00261A38 File Offset: 0x0025FC38
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639730, XrefRangeEnd = 639742, 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: 0x0600944F RID: 37967 RVA: 0x00261A88 File Offset: 0x0025FC88
		// 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, 100674754);
			ObiBoxShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiBoxShapeTracker2D>.NativeClassPtr, 100674755);
		}

		// Token: 0x06009450 RID: 37968 RVA: 0x00261B08 File Offset: 0x0025FD08
		public ObiBoxShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700324E RID: 12878
		// (get) Token: 0x06009451 RID: 37969 RVA: 0x00261B14 File Offset: 0x0025FD14
		// (set) Token: 0x06009452 RID: 37970 RVA: 0x00261B3C File Offset: 0x0025FD3C
		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: 0x1700324F RID: 12879
		// (get) Token: 0x06009453 RID: 37971 RVA: 0x00261B60 File Offset: 0x0025FD60
		// (set) Token: 0x06009454 RID: 37972 RVA: 0x00261B88 File Offset: 0x0025FD88
		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: 0x040062FA RID: 25338
		private static readonly IntPtr NativeFieldInfoPtr_size;

		// Token: 0x040062FB RID: 25339
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x040062FC RID: 25340
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_BoxCollider2D_0;

		// Token: 0x040062FD RID: 25341
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
