using System;
using Cpp2IlInjected;
using UnityEngine;

namespace Bitgem.VFX.StylisedWater
{
	// Token: 0x020003E0 RID: 992
	[Token(Token = "0x20003E0")]
	public class WaterVolumeHelper : MonoBehaviour
	{
		// Token: 0x1700020E RID: 526
		// (get) Token: 0x060024F8 RID: 9464 RVA: 0x000567C8 File Offset: 0x000549C8
		[Token(Token = "0x1700020E")]
		public static WaterVolumeHelper Instance
		{
			[Token(Token = "0x60024F8")]
			[Address(RVA = "0x4BCC20", Offset = "0x4BBC20", VA = "0x1804BCC20")]
			get
			{
				return WaterVolumeHelper.instance;
			}
		}

		// Token: 0x060024F9 RID: 9465 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60024F9")]
		[Address(RVA = "0x4BC8D0", Offset = "0x4BB8D0", VA = "0x1804BC8D0")]
		public float? GetHeight(Vector3 _position)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060024FA RID: 9466 RVA: 0x000567DC File Offset: 0x000549DC
		[Token(Token = "0x60024FA")]
		[Address(RVA = "0x4BC860", Offset = "0x4BB860", VA = "0x1804BC860")]
		private void Awake()
		{
			/*
An exception occurred when decompiling this method (060024FA)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Bitgem.VFX.StylisedWater.WaterVolumeHelper::Awake()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stsfld:WaterVolumeHelper(WaterVolumeHelper::instance, ldloc:WaterVolumeHelper(this)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
		}

		// Token: 0x060024FB RID: 9467 RVA: 0x000567F0 File Offset: 0x000549F0
		[Token(Token = "0x60024FB")]
		[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
		public WaterVolumeHelper()
		{
		}

		// Token: 0x060024FC RID: 9468 RVA: 0x000020D3 File Offset: 0x000002D3
		// Note: this type is marked as 'beforefieldinit'.
		[Token(Token = "0x60024FC")]
		[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
		static WaterVolumeHelper()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04002E6F RID: 11887
		[Token(Token = "0x4002E6F")]
		private static WaterVolumeHelper instance;

		// Token: 0x04002E70 RID: 11888
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002E70")]
		public WaterVolumeBase WaterVolume;
	}
}
