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

namespace Obi
{
	// Token: 0x020004AA RID: 1194
	public class ObiCircleShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x06008C0C RID: 35852 RVA: 0x0023F09C File Offset: 0x0023D29C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607453, XrefRangeEnd = 607456, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiCircleShapeTracker2D(CircleCollider2D collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiCircleShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_CircleCollider2D_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06008C0D RID: 35853 RVA: 0x0023F100 File Offset: 0x0023D300
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 607456, XrefRangeEnd = 607468, 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), ObiCircleShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008C0E RID: 35854 RVA: 0x0023F150 File Offset: 0x0023D350
		// Note: this type is marked as 'beforefieldinit'.
		static ObiCircleShapeTracker2D()
		{
			Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiCircleShapeTracker2D");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr);
			ObiCircleShapeTracker2D.NativeFieldInfoPtr_radius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, "radius");
			ObiCircleShapeTracker2D.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, "center");
			ObiCircleShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_CircleCollider2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, 100674045);
			ObiCircleShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, 100674046);
		}

		// Token: 0x06008C0F RID: 35855 RVA: 0x0023EDCC File Offset: 0x0023CFCC
		public ObiCircleShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002FB8 RID: 12216
		// (get) Token: 0x06008C10 RID: 35856 RVA: 0x0023F1D0 File Offset: 0x0023D3D0
		// (set) Token: 0x06008C11 RID: 35857 RVA: 0x0023F1F8 File Offset: 0x0023D3F8
		public unsafe float radius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_radius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_radius)) = value;
			}
		}

		// Token: 0x17002FB9 RID: 12217
		// (get) Token: 0x06008C12 RID: 35858 RVA: 0x0023F21C File Offset: 0x0023D41C
		// (set) Token: 0x06008C13 RID: 35859 RVA: 0x0023F244 File Offset: 0x0023D444
		public unsafe Vector2 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04005D5A RID: 23898
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04005D5B RID: 23899
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04005D5C RID: 23900
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_CircleCollider2D_0;

		// Token: 0x04005D5D RID: 23901
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
