using System;
using System.Collections.Generic;
using Cpp2IlInjected;

namespace AmplifyColor
{
	// Token: 0x02000621 RID: 1569
	[Token(Token = "0x2000621")]
	[Serializable]
	public class VolumeEffectContainer
	{
		// Token: 0x06003141 RID: 12609 RVA: 0x00067114 File Offset: 0x00065314
		[Token(Token = "0x6003141")]
		[Address(RVA = "0x93CE30", Offset = "0x93BC30", VA = "0x18093CE30")]
		public VolumeEffectContainer()
		{
			/*
An exception occurred when decompiling this method (06003141)

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

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(object::.ctor, ldloc:VolumeEffectContainer[exp:object](this)); 	stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(var_0_0B, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>](List`1::.ctor)); 	stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(VolumeEffectContainer::volumes, ldloc:VolumeEffectContainer(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(var_0_0B)); }; 
   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: 0x06003142 RID: 12610 RVA: 0x00067134 File Offset: 0x00065334
		[Token(Token = "0x6003142")]
		[Address(RVA = "0x93C920", Offset = "0x93B720", VA = "0x18093C920")]
		public void AddColorEffect(AmplifyColorBase colorEffect)
		{
			VolumeEffect volumeEffect = this.FindVolumeEffect(colorEffect);
			if (volumeEffect == 0)
			{
				VolumeEffect volumeEffect2 = new VolumeEffect(colorEffect);
				this.volumes.Add(volumeEffect2);
				volumeEffect2.UpdateVolume();
				return;
			}
			volumeEffect.UpdateVolume();
		}

		// Token: 0x06003143 RID: 12611 RVA: 0x00067174 File Offset: 0x00065374
		[Token(Token = "0x6003143")]
		[Address(RVA = "0x93C9E0", Offset = "0x93B7E0", VA = "0x18093C9E0")]
		public VolumeEffect AddJustColorEffect(AmplifyColorBase colorEffect)
		{
			VolumeEffect volumeEffect = new VolumeEffect(colorEffect);
			this.volumes.Add(volumeEffect);
			return volumeEffect;
		}

		// Token: 0x06003144 RID: 12612 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003144")]
		[Address(RVA = "0x93CA70", Offset = "0x93B870", VA = "0x18093CA70")]
		public VolumeEffect FindVolumeEffect(AmplifyColorBase colorEffect)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003145 RID: 12613 RVA: 0x0006719C File Offset: 0x0006539C
		[Token(Token = "0x6003145")]
		[Address(RVA = "0x93CDD0", Offset = "0x93BBD0", VA = "0x18093CDD0")]
		public void RemoveVolumeEffect(VolumeEffect volume)
		{
			bool flag = this.volumes.Remove(volume);
		}

		// Token: 0x06003146 RID: 12614 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003146")]
		[Address(RVA = "0x93CC90", Offset = "0x93BA90", VA = "0x18093CC90")]
		public AmplifyColorBase[] GetStoredEffects()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003B10 RID: 15120
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003B10")]
		public List<VolumeEffect> volumes;
	}
}
