using System;
using System.Collections.Generic;
using System.Reflection;
using Cpp2IlInjected;
using UnityEngine;

namespace AmplifyColor
{
	// Token: 0x02000674 RID: 1652
	[Token(Token = "0x2000674")]
	[Serializable]
	public class VolumeEffectComponent
	{
		// Token: 0x060033ED RID: 13293 RVA: 0x0006E14C File Offset: 0x0006C34C
		[Token(Token = "0x60033ED")]
		[Address(RVA = "0x4B6660", Offset = "0x4B5660", VA = "0x1804B6660")]
		public VolumeEffectComponent(string name)
		{
			/*
An exception occurred when decompiling this method (060033ED)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffectComponent::.ctor(System.String)

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(object::.ctor, ldloc:VolumeEffectComponent[exp:object](this)); 	stfld:string(VolumeEffectComponent::componentName, ldloc:VolumeEffectComponent(this), ldloc:string(name)); 	stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>(var_0_12, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>](List`1::.ctor)); 	stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>(VolumeEffectComponent::fields, ldloc:VolumeEffectComponent(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>(var_0_12)); }; 
   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: 0x060033EE RID: 13294 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033EE")]
		[Address(RVA = "0x4B5DF0", Offset = "0x4B4DF0", VA = "0x1804B5DF0")]
		public VolumeEffectField AddField(FieldInfo pi, Component c)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060033EF RID: 13295 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033EF")]
		[Address(RVA = "0x4B5CB0", Offset = "0x4B4CB0", VA = "0x1804B5CB0")]
		public VolumeEffectField AddField(FieldInfo pi, Component c, int position)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060033F0 RID: 13296 RVA: 0x0006E174 File Offset: 0x0006C374
		[Token(Token = "0x60033F0")]
		[Address(RVA = "0x4B62F0", Offset = "0x4B52F0", VA = "0x1804B62F0")]
		public void RemoveEffectField(VolumeEffectField field)
		{
			bool flag = this.fields.Remove(field);
		}

		// Token: 0x060033F1 RID: 13297 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033F1")]
		[Address(RVA = "0x4B66F0", Offset = "0x4B56F0", VA = "0x1804B66F0")]
		public VolumeEffectComponent(Component c, VolumeEffectComponentFlags compFlags)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060033F2 RID: 13298 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033F2")]
		[Address(RVA = "0x4B6350", Offset = "0x4B5350", VA = "0x1804B6350")]
		public void UpdateComponent(Component c, VolumeEffectComponentFlags compFlags)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060033F3 RID: 13299 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033F3")]
		[Address(RVA = "0x4B5EF0", Offset = "0x4B4EF0", VA = "0x1804B5EF0")]
		public VolumeEffectField FindEffectField(string fieldName)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060033F4 RID: 13300 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033F4")]
		[Address(RVA = "0x4B6120", Offset = "0x4B5120", VA = "0x1804B6120")]
		public static FieldInfo[] ListAcceptableFields(Component c)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060033F5 RID: 13301 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033F5")]
		[Address(RVA = "0x4B5FE0", Offset = "0x4B4FE0", VA = "0x1804B5FE0")]
		public string[] GetFieldNames()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003DEF RID: 15855
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003DEF")]
		public string componentName;

		// Token: 0x04003DF0 RID: 15856
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003DF0")]
		public List<VolumeEffectField> fields;
	}
}
