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

namespace Obi
{
	// Token: 0x0200054C RID: 1356
	public class ObiSphericalForceZone : ObiExternalForce
	{
		// Token: 0x06009929 RID: 39209 RVA: 0x00276F28 File Offset: 0x00275128
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644676, XrefRangeEnd = 644677, 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: 0x0600992A RID: 39210 RVA: 0x00276F6C File Offset: 0x0027516C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644677, XrefRangeEnd = 644678, 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: 0x0600992B RID: 39211 RVA: 0x00276FB0 File Offset: 0x002751B0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644678, XrefRangeEnd = 644713, 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: 0x0600992C RID: 39212 RVA: 0x00277014 File Offset: 0x00275214
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644713, XrefRangeEnd = 644724, 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: 0x0600992D RID: 39213 RVA: 0x00277058 File Offset: 0x00275258
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 644724, XrefRangeEnd = 644725, 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: 0x0600992E RID: 39214 RVA: 0x002770A4 File Offset: 0x002752A4
		// 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, 100675246);
			ObiSphericalForceZone.NativeMethodInfoPtr_OnDisable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100675247);
			ObiSphericalForceZone.NativeMethodInfoPtr_ApplyForcesToActor_Public_Virtual_Void_ObiActor_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100675248);
			ObiSphericalForceZone.NativeMethodInfoPtr_OnDrawGizmosSelected_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100675249);
			ObiSphericalForceZone.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiSphericalForceZone>.NativeClassPtr, 100675250);
		}

		// Token: 0x0600992F RID: 39215 RVA: 0x00276B54 File Offset: 0x00274D54
		public ObiSphericalForceZone(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170033B9 RID: 13241
		// (get) Token: 0x06009930 RID: 39216 RVA: 0x00277160 File Offset: 0x00275360
		// (set) Token: 0x06009931 RID: 39217 RVA: 0x00277188 File Offset: 0x00275388
		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: 0x170033BA RID: 13242
		// (get) Token: 0x06009932 RID: 39218 RVA: 0x002771AC File Offset: 0x002753AC
		// (set) Token: 0x06009933 RID: 39219 RVA: 0x002771D4 File Offset: 0x002753D4
		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: 0x0400663E RID: 26174
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x0400663F RID: 26175
		private static readonly IntPtr NativeFieldInfoPtr_radial;

		// Token: 0x04006640 RID: 26176
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Public_Void_0;

		// Token: 0x04006641 RID: 26177
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Public_Void_0;

		// Token: 0x04006642 RID: 26178
		private static readonly IntPtr NativeMethodInfoPtr_ApplyForcesToActor_Public_Virtual_Void_ObiActor_0;

		// Token: 0x04006643 RID: 26179
		private static readonly IntPtr NativeMethodInfoPtr_OnDrawGizmosSelected_Public_Void_0;

		// Token: 0x04006644 RID: 26180
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
