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

namespace Obi
{
	// Token: 0x020004F4 RID: 1268
	public class ObiSphericalForceZone : ObiExternalForce
	{
		// Token: 0x060090D6 RID: 37078 RVA: 0x002541EC File Offset: 0x002523EC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612366, XrefRangeEnd = 612367, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiSphericalForceZone.NativeMethodInfoPtr_OnEnable_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090D7 RID: 37079 RVA: 0x00254230 File Offset: 0x00252430
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612367, XrefRangeEnd = 612368, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiSphericalForceZone.NativeMethodInfoPtr_OnDisable_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090D8 RID: 37080 RVA: 0x00254274 File Offset: 0x00252474
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612368, XrefRangeEnd = 612403, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void ApplyForcesToActor(ObiActor actor)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(actor);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ObiSphericalForceZone.NativeMethodInfoPtr_ApplyForcesToActor_Public_Virtual_Void_ObiActor_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x060090D9 RID: 37081 RVA: 0x002542D8 File Offset: 0x002524D8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612403, XrefRangeEnd = 612414, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDrawGizmosSelected()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiSphericalForceZone.NativeMethodInfoPtr_OnDrawGizmosSelected_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090DA RID: 37082 RVA: 0x0025431C File Offset: 0x0025251C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 612414, XrefRangeEnd = 612415, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiSphericalForceZone()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiSphericalForceZone.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060090DB RID: 37083 RVA: 0x00254368 File Offset: 0x00252568
		// Note: this type is marked as 'beforefieldinit'.
		static ObiSphericalForceZone()
		{
			Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiSphericalForceZone");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr);
			ObiSphericalForceZone.NativeFieldInfoPtr_radius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, "radius");
			ObiSphericalForceZone.NativeFieldInfoPtr_radial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, "radial");
			ObiSphericalForceZone.NativeMethodInfoPtr_OnEnable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100674533);
			ObiSphericalForceZone.NativeMethodInfoPtr_OnDisable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100674534);
			ObiSphericalForceZone.NativeMethodInfoPtr_ApplyForcesToActor_Public_Virtual_Void_ObiActor_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100674535);
			ObiSphericalForceZone.NativeMethodInfoPtr_OnDrawGizmosSelected_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100674536);
			ObiSphericalForceZone.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100674537);
		}

		// Token: 0x060090DC RID: 37084 RVA: 0x00253E18 File Offset: 0x00252018
		public ObiSphericalForceZone(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700311E RID: 12574
		// (get) Token: 0x060090DD RID: 37085 RVA: 0x00254424 File Offset: 0x00252624
		// (set) Token: 0x060090DE RID: 37086 RVA: 0x0025444C File Offset: 0x0025264C
		public unsafe float radius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphericalForceZone.NativeFieldInfoPtr_radius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphericalForceZone.NativeFieldInfoPtr_radius)) = value;
			}
		}

		// Token: 0x1700311F RID: 12575
		// (get) Token: 0x060090DF RID: 37087 RVA: 0x00254470 File Offset: 0x00252670
		// (set) Token: 0x060090E0 RID: 37088 RVA: 0x00254498 File Offset: 0x00252698
		public unsafe bool radial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphericalForceZone.NativeFieldInfoPtr_radial);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiSphericalForceZone.NativeFieldInfoPtr_radial)) = value;
			}
		}

		// Token: 0x04006095 RID: 24725
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04006096 RID: 24726
		private static readonly IntPtr NativeFieldInfoPtr_radial;

		// Token: 0x04006097 RID: 24727
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Public_Void_0;

		// Token: 0x04006098 RID: 24728
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Public_Void_0;

		// Token: 0x04006099 RID: 24729
		private static readonly IntPtr NativeMethodInfoPtr_ApplyForcesToActor_Public_Virtual_Void_ObiActor_0;

		// Token: 0x0400609A RID: 24730
		private static readonly IntPtr NativeMethodInfoPtr_OnDrawGizmosSelected_Public_Void_0;

		// Token: 0x0400609B RID: 24731
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
