using System;
using Cpp2IlInjected;
using UnityEngine;

namespace Bitgem.VFX.StylisedWater
{
	// Token: 0x02000388 RID: 904
	[Token(Token = "0x2000388")]
	public class WaterVolumeHelper : MonoBehaviour
	{
		// Token: 0x170001E9 RID: 489
		// (get) Token: 0x0600222F RID: 8751 RVA: 0x0004F52C File Offset: 0x0004D72C
		[Token(Token = "0x170001E9")]
		public static WaterVolumeHelper Instance
		{
			[Token(Token = "0x600222F")]
			[Address(RVA = "0x942BA0", Offset = "0x9419A0", VA = "0x180942BA0")]
			get
			{
				return WaterVolumeHelper.instance;
			}
		}

		// Token: 0x06002230 RID: 8752 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002230")]
		[Address(RVA = "0x942850", Offset = "0x941650", VA = "0x180942850")]
		public float? GetHeight(Vector3 _position)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002231 RID: 8753 RVA: 0x0004F540 File Offset: 0x0004D740
		[Token(Token = "0x6002231")]
		[Address(RVA = "0x9427E0", Offset = "0x9415E0", VA = "0x1809427E0")]
		private void Awake()
		{
			/*
An exception occurred when decompiling this method (06002231)

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: 0x06002232 RID: 8754 RVA: 0x0004F554 File Offset: 0x0004D754
		[Token(Token = "0x6002232")]
		[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
		public WaterVolumeHelper()
		{
		}

		// Token: 0x06002233 RID: 8755 RVA: 0x000020D3 File Offset: 0x000002D3
		// Note: this type is marked as 'beforefieldinit'.
		[Token(Token = "0x6002233")]
		[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
		static WaterVolumeHelper()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04002B85 RID: 11141
		[Token(Token = "0x4002B85")]
		private static WaterVolumeHelper instance;

		// Token: 0x04002B86 RID: 11142
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002B86")]
		public WaterVolumeBase WaterVolume;
	}
}
