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

namespace Bitgem.VFX.StylisedWater
{
	// Token: 0x02000397 RID: 919
	public class WaterVolumeHelper : MonoBehaviour
	{
		// Token: 0x170027DC RID: 10204
		// (get) Token: 0x06007448 RID: 29768 RVA: 0x001D9E28 File Offset: 0x001D8028
		public unsafe static WaterVolumeHelper Instance
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 588282, XrefRangeEnd = 588286, 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: 0x06007449 RID: 29769 RVA: 0x001D9E70 File Offset: 0x001D8070
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 588324, RefRangeEnd = 588325, XrefRangeStart = 588286, XrefRangeEnd = 588324, 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: 0x0600744A RID: 29770 RVA: 0x001D9ED0 File Offset: 0x001D80D0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 588325, XrefRangeEnd = 588330, 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: 0x0600744B RID: 29771 RVA: 0x001D9F14 File Offset: 0x001D8114
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x0600744C RID: 29772 RVA: 0x001D9F60 File Offset: 0x001D8160
		// 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, 100672047);
			WaterVolumeHelper.NativeMethodInfoPtr_GetHeight_Public_Nullable_1_Single_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, 100672048);
			WaterVolumeHelper.NativeMethodInfoPtr_Awake_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, 100672049);
			WaterVolumeHelper.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<WaterVolumeHelper>.NativeClassPtr, 100672050);
		}

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

		// Token: 0x170027DA RID: 10202
		// (get) Token: 0x0600744E RID: 29774 RVA: 0x001DA008 File Offset: 0x001D8208
		// (set) Token: 0x0600744F RID: 29775 RVA: 0x001DA033 File Offset: 0x001D8233
		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: 0x170027DB RID: 10203
		// (get) Token: 0x06007450 RID: 29776 RVA: 0x001DA048 File Offset: 0x001D8248
		// (set) Token: 0x06007451 RID: 29777 RVA: 0x001DA07C File Offset: 0x001D827C
		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: 0x04004E03 RID: 19971
		private static readonly IntPtr NativeFieldInfoPtr_instance;

		// Token: 0x04004E04 RID: 19972
		private static readonly IntPtr NativeFieldInfoPtr_WaterVolume;

		// Token: 0x04004E05 RID: 19973
		private static readonly IntPtr NativeMethodInfoPtr_get_Instance_Public_Static_get_WaterVolumeHelper_0;

		// Token: 0x04004E06 RID: 19974
		private static readonly IntPtr NativeMethodInfoPtr_GetHeight_Public_Nullable_1_Single_Vector3_0;

		// Token: 0x04004E07 RID: 19975
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

		// Token: 0x04004E08 RID: 19976
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
