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

namespace Bitgem.VFX.StylisedWater
{
	// Token: 0x020003EF RID: 1007
	public class WaterVolumeHelper : MonoBehaviour
	{
		// Token: 0x17002A77 RID: 10871
		// (get) Token: 0x06007C9B RID: 31899 RVA: 0x001FCB64 File Offset: 0x001FAD64
		public unsafe static WaterVolumeHelper Instance
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620587, XrefRangeEnd = 620591, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(WaterVolumeHelper.NativeMethodInfoPtr_get_Instance_Public_Static_get_WaterVolumeHelper_0, 0, (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new WaterVolumeHelper(intPtr3) : null;
			}
		}

		// Token: 0x06007C9C RID: 31900 RVA: 0x001FCBAC File Offset: 0x001FADAC
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 620629, RefRangeEnd = 620630, XrefRangeStart = 620591, XrefRangeEnd = 620629, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe Nullable<float> GetHeight(Vector3 _position)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref _position;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(WaterVolumeHelper.NativeMethodInfoPtr_GetHeight_Public_Nullable_1_Single_Vector3_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return new Nullable<float>(intPtr);
			}
		}

		// Token: 0x06007C9D RID: 31901 RVA: 0x001FCC0C File Offset: 0x001FAE0C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620630, XrefRangeEnd = 620635, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Awake()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(WaterVolumeHelper.NativeMethodInfoPtr_Awake_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007C9E RID: 31902 RVA: 0x001FCC50 File Offset: 0x001FAE50
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe WaterVolumeHelper()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(WaterVolumeHelper.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007C9F RID: 31903 RVA: 0x001FCC9C File Offset: 0x001FAE9C
		// Note: this type is marked as 'beforefieldinit'.
		static WaterVolumeHelper()
		{
			Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Bitgem.VFX.StylisedWater", "WaterVolumeHelper");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr);
			WaterVolumeHelper.NativeFieldInfoPtr_instance = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, "instance");
			WaterVolumeHelper.NativeFieldInfoPtr_WaterVolume = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, "WaterVolume");
			WaterVolumeHelper.NativeMethodInfoPtr_get_Instance_Public_Static_get_WaterVolumeHelper_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, 100672760);
			WaterVolumeHelper.NativeMethodInfoPtr_GetHeight_Public_Nullable_1_Single_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, 100672761);
			WaterVolumeHelper.NativeMethodInfoPtr_Awake_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, 100672762);
			WaterVolumeHelper.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, 100672763);
		}

		// Token: 0x06007CA0 RID: 31904 RVA: 0x0000351C File Offset: 0x0000171C
		public WaterVolumeHelper(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A75 RID: 10869
		// (get) Token: 0x06007CA1 RID: 31905 RVA: 0x001FCD44 File Offset: 0x001FAF44
		// (set) Token: 0x06007CA2 RID: 31906 RVA: 0x001FCD6F File Offset: 0x001FAF6F
		public unsafe static WaterVolumeHelper instance
		{
			get
			{
				IntPtr intPtr;
				IL2CPP.il2cpp_field_static_get_value(WaterVolumeHelper.NativeFieldInfoPtr_instance, (void*)(&intPtr));
				IntPtr intPtr2 = intPtr;
				return (intPtr2 != 0) ? new WaterVolumeHelper(intPtr2) : null;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(WaterVolumeHelper.NativeFieldInfoPtr_instance, IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002A76 RID: 10870
		// (get) Token: 0x06007CA3 RID: 31907 RVA: 0x001FCD84 File Offset: 0x001FAF84
		// (set) Token: 0x06007CA4 RID: 31908 RVA: 0x001FCDB8 File Offset: 0x001FAFB8
		public unsafe WaterVolumeBase WaterVolume
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(WaterVolumeHelper.NativeFieldInfoPtr_WaterVolume);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new WaterVolumeBase(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(WaterVolumeHelper.NativeFieldInfoPtr_WaterVolume), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040053AC RID: 21420
		private static readonly IntPtr NativeFieldInfoPtr_instance;

		// Token: 0x040053AD RID: 21421
		private static readonly IntPtr NativeFieldInfoPtr_WaterVolume;

		// Token: 0x040053AE RID: 21422
		private static readonly IntPtr NativeMethodInfoPtr_get_Instance_Public_Static_get_WaterVolumeHelper_0;

		// Token: 0x040053AF RID: 21423
		private static readonly IntPtr NativeMethodInfoPtr_GetHeight_Public_Nullable_1_Single_Vector3_0;

		// Token: 0x040053B0 RID: 21424
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

		// Token: 0x040053B1 RID: 21425
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
