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

namespace AmplifyColor
{
	// Token: 0x0200061C RID: 1564
	[Token(Token = "0x200061C")]
	[Serializable]
	public class VolumeEffectComponent
	{
		// Token: 0x06003124 RID: 12580 RVA: 0x00066F8C File Offset: 0x0006518C
		[Token(Token = "0x6003124")]
		[Address(RVA = "0x93C660", Offset = "0x93B460", VA = "0x18093C660")]
		public VolumeEffectComponent(string name)
		{
			/*
An exception occurred when decompiling this method (06003124)

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: 0x06003125 RID: 12581 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003125")]
		[Address(RVA = "0x93BDF0", Offset = "0x93ABF0", VA = "0x18093BDF0")]
		public VolumeEffectField AddField(FieldInfo pi, Component c)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003126 RID: 12582 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003126")]
		[Address(RVA = "0x93BCB0", Offset = "0x93AAB0", VA = "0x18093BCB0")]
		public VolumeEffectField AddField(FieldInfo pi, Component c, int position)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003127 RID: 12583 RVA: 0x00066FB4 File Offset: 0x000651B4
		[Token(Token = "0x6003127")]
		[Address(RVA = "0x93C2F0", Offset = "0x93B0F0", VA = "0x18093C2F0")]
		public void RemoveEffectField(VolumeEffectField field)
		{
			bool flag = this.fields.Remove(field);
		}

		// Token: 0x06003128 RID: 12584 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003128")]
		[Address(RVA = "0x93C6F0", Offset = "0x93B4F0", VA = "0x18093C6F0")]
		public VolumeEffectComponent(Component c, VolumeEffectComponentFlags compFlags)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003129 RID: 12585 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003129")]
		[Address(RVA = "0x93C350", Offset = "0x93B150", VA = "0x18093C350")]
		public void UpdateComponent(Component c, VolumeEffectComponentFlags compFlags)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600312A RID: 12586 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600312A")]
		[Address(RVA = "0x93BEF0", Offset = "0x93ACF0", VA = "0x18093BEF0")]
		public VolumeEffectField FindEffectField(string fieldName)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600312B RID: 12587 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600312B")]
		[Address(RVA = "0x93C120", Offset = "0x93AF20", VA = "0x18093C120")]
		public static FieldInfo[] ListAcceptableFields(Component c)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600312C RID: 12588 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600312C")]
		[Address(RVA = "0x93BFE0", Offset = "0x93ADE0", VA = "0x18093BFE0")]
		public string[] GetFieldNames()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003B05 RID: 15109
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003B05")]
		public string componentName;

		// Token: 0x04003B06 RID: 15110
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003B06")]
		public List<VolumeEffectField> fields;
	}
}
