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

namespace AmplifyColor
{
	// Token: 0x0200061B RID: 1563
	[Token(Token = "0x200061B")]
	[Serializable]
	public class VolumeEffectField
	{
		// Token: 0x06003120 RID: 12576 RVA: 0x00066F20 File Offset: 0x00065120
		[Token(Token = "0x6003120")]
		[Address(RVA = "0x3FBF90", Offset = "0x3FAD90", VA = "0x1803FBF90")]
		public VolumeEffectField(string fieldName, string fieldType)
		{
			/*
An exception occurred when decompiling this method (06003120)

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: 0x06003121 RID: 12577 RVA: 0x00066F40 File Offset: 0x00065140
		[Token(Token = "0x6003121")]
		[Address(RVA = "0x93D3A0", Offset = "0x93C1A0", VA = "0x18093D3A0")]
		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: 0x06003122 RID: 12578 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003122")]
		[Address(RVA = "0x93CFA0", Offset = "0x93BDA0", VA = "0x18093CFA0")]
		public static bool IsValidType(string type)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003123 RID: 12579 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003123")]
		[Address(RVA = "0x93D0A0", Offset = "0x93BEA0", VA = "0x18093D0A0")]
		public void UpdateValue(object val)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003AFD RID: 15101
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003AFD")]
		public string fieldName;

		// Token: 0x04003AFE RID: 15102
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003AFE")]
		public string fieldType;

		// Token: 0x04003AFF RID: 15103
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003AFF")]
		public float valueSingle;

		// Token: 0x04003B00 RID: 15104
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4003B00")]
		public Color valueColor;

		// Token: 0x04003B01 RID: 15105
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x4003B01")]
		public bool valueBoolean;

		// Token: 0x04003B02 RID: 15106
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4003B02")]
		public Vector2 valueVector2;

		// Token: 0x04003B03 RID: 15107
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x4003B03")]
		public Vector3 valueVector3;

		// Token: 0x04003B04 RID: 15108
		[FieldOffset(Offset = "0x4C")]
		[Token(Token = "0x4003B04")]
		public Vector4 valueVector4;
	}
}
