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

namespace AmplifyColor
{
	// Token: 0x02000679 RID: 1657
	[Token(Token = "0x2000679")]
	[Serializable]
	public class VolumeEffectContainer
	{
		// Token: 0x0600340A RID: 13322 RVA: 0x0006E2D4 File Offset: 0x0006C4D4
		[Token(Token = "0x600340A")]
		[Address(RVA = "0x4B6E30", Offset = "0x4B5E30", VA = "0x1804B6E30")]
		public VolumeEffectContainer()
		{
			/*
An exception occurred when decompiling this method (0600340A)

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: 0x0600340B RID: 13323 RVA: 0x0006E2F4 File Offset: 0x0006C4F4
		[Token(Token = "0x600340B")]
		[Address(RVA = "0x4B6920", Offset = "0x4B5920", VA = "0x1804B6920")]
		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: 0x0600340C RID: 13324 RVA: 0x0006E334 File Offset: 0x0006C534
		[Token(Token = "0x600340C")]
		[Address(RVA = "0x4B69E0", Offset = "0x4B59E0", VA = "0x1804B69E0")]
		public VolumeEffect AddJustColorEffect(AmplifyColorBase colorEffect)
		{
			VolumeEffect volumeEffect = new VolumeEffect(colorEffect);
			this.volumes.Add(volumeEffect);
			return volumeEffect;
		}

		// Token: 0x0600340D RID: 13325 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600340D")]
		[Address(RVA = "0x4B6A70", Offset = "0x4B5A70", VA = "0x1804B6A70")]
		public VolumeEffect FindVolumeEffect(AmplifyColorBase colorEffect)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600340E RID: 13326 RVA: 0x0006E35C File Offset: 0x0006C55C
		[Token(Token = "0x600340E")]
		[Address(RVA = "0x4B6DD0", Offset = "0x4B5DD0", VA = "0x1804B6DD0")]
		public void RemoveVolumeEffect(VolumeEffect volume)
		{
			bool flag = this.volumes.Remove(volume);
		}

		// Token: 0x0600340F RID: 13327 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600340F")]
		[Address(RVA = "0x4B6C90", Offset = "0x4B5C90", VA = "0x1804B6C90")]
		public AmplifyColorBase[] GetStoredEffects()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003DFA RID: 15866
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003DFA")]
		public List<VolumeEffect> volumes;
	}
}
