using System;
using System.Reflection;
using Cpp2IlInjected;
using UnityEngine;

namespace AmplifyColor
{
	// Token: 0x02000673 RID: 1651
	[Token(Token = "0x2000673")]
	[Serializable]
	public class VolumeEffectField
	{
		// Token: 0x060033E9 RID: 13289 RVA: 0x0006E0E0 File Offset: 0x0006C2E0
		[Token(Token = "0x60033E9")]
		[Address(RVA = "0x41ED40", Offset = "0x41DD40", VA = "0x18041ED40")]
		public VolumeEffectField(string fieldName, string fieldType)
		{
			/*
An exception occurred when decompiling this method (060033E9)

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

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(object::.ctor, ldloc:VolumeEffectField[exp:object](this)); 	stfld:string(VolumeEffectField::fieldName, ldloc:VolumeEffectField(this), ldloc:string(fieldName)); 	stfld:string(VolumeEffectField::fieldType, ldloc:VolumeEffectField(this), ldloc:string(fieldType)); }; 
   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: 0x060033EA RID: 13290 RVA: 0x0006E100 File Offset: 0x0006C300
		[Token(Token = "0x60033EA")]
		[Address(RVA = "0x4B73A0", Offset = "0x4B63A0", VA = "0x1804B73A0")]
		public VolumeEffectField(FieldInfo pi, Component c)
		{
			string name = pi.Name;
			string fullName = pi.FieldType.FullName;
			base..ctor();
			this.fieldName = name;
			this.fieldType = fullName;
			object value = pi.GetValue(c);
			this.UpdateValue(value);
		}

		// Token: 0x060033EB RID: 13291 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033EB")]
		[Address(RVA = "0x4B6FA0", Offset = "0x4B5FA0", VA = "0x1804B6FA0")]
		public static bool IsValidType(string type)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060033EC RID: 13292 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60033EC")]
		[Address(RVA = "0x4B70A0", Offset = "0x4B60A0", VA = "0x1804B70A0")]
		public void UpdateValue(object val)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003DE7 RID: 15847
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003DE7")]
		public string fieldName;

		// Token: 0x04003DE8 RID: 15848
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003DE8")]
		public string fieldType;

		// Token: 0x04003DE9 RID: 15849
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003DE9")]
		public float valueSingle;

		// Token: 0x04003DEA RID: 15850
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4003DEA")]
		public Color valueColor;

		// Token: 0x04003DEB RID: 15851
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x4003DEB")]
		public bool valueBoolean;

		// Token: 0x04003DEC RID: 15852
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4003DEC")]
		public Vector2 valueVector2;

		// Token: 0x04003DED RID: 15853
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x4003DED")]
		public Vector3 valueVector3;

		// Token: 0x04003DEE RID: 15854
		[FieldOffset(Offset = "0x4C")]
		[Token(Token = "0x4003DEE")]
		public Vector4 valueVector4;
	}
}
