using System;
using ch.sycoforge.Decal;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020000C5 RID: 197
[Token(Token = "0x20000C5")]
public class AreaCure : MonoBehaviour
{
	// Token: 0x06000862 RID: 2146 RVA: 0x00012470 File Offset: 0x00010670
	[Token(Token = "0x6000862")]
	[Address(RVA = "0xDB3E70", Offset = "0xDB2E70", VA = "0x180DB3E70")]
	private void Start()
	{
		ParticleSystem component = base.GetComponent<ParticleSystem>();
		this.g_PS = component;
		ParticleSystem particleSystem = this.g_PS;
		int num = 0;
		if (particleSystem == num)
		{
			Debug.LogError(base.transform.name + " 特效錯誤");
		}
		WizardGirlManage playerManager = Game.GetPlayerManager();
		this.g_WGM = playerManager;
		Material material = this.g_DecalAura.GetComponent<EasyDecal>().material;
		this.g_MatDecalAura = material;
		throw new NullReferenceException();
	}

	// Token: 0x06000863 RID: 2147 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000863")]
	[Address(RVA = "0xDB4000", Offset = "0xDB3000", VA = "0x180DB4000")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000864 RID: 2148 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000864")]
	[Address(RVA = "0xDB3C40", Offset = "0xDB2C40", VA = "0x180DB3C40")]
	public void Set(float fSecondCureVal, SoundEffectPool soundEffectPool)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000865 RID: 2149 RVA: 0x000124E8 File Offset: 0x000106E8
	[Token(Token = "0x6000865")]
	[Address(RVA = "0xDB3B80", Offset = "0xDB2B80", VA = "0x180DB3B80")]
	private void OnTriggerEnter(Collider Enter)
	{
		if (Enter.CompareTag("Player"))
		{
			this.g_bEnter = true;
		}
	}

	// Token: 0x06000866 RID: 2150 RVA: 0x00012510 File Offset: 0x00010710
	[Token(Token = "0x6000866")]
	[Address(RVA = "0xDB3BE0", Offset = "0xDB2BE0", VA = "0x180DB3BE0")]
	private void OnTriggerExit(Collider Exit)
	{
		if (Exit.CompareTag("Player"))
		{
			this.g_bEnter = false;
		}
	}

	// Token: 0x06000867 RID: 2151 RVA: 0x00012538 File Offset: 0x00010738
	[Token(Token = "0x6000867")]
	[Address(RVA = "0xDB4480", Offset = "0xDB3480", VA = "0x180DB4480")]
	public AreaCure()
	{
	}

	// Token: 0x04000991 RID: 2449
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4000991")]
	private ParticleSystem g_PS;

	// Token: 0x04000992 RID: 2450
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4000992")]
	private WizardGirlManage g_WGM;

	// Token: 0x04000993 RID: 2451
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4000993")]
	public Light LPoint;

	// Token: 0x04000994 RID: 2452
	[Token(Token = "0x4000994")]
	private const float g_fLightIntensity = 1.5f;

	// Token: 0x04000995 RID: 2453
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4000995")]
	private float g_fLightIntensityVal;

	// Token: 0x04000996 RID: 2454
	[Token(Token = "0x4000996")]
	private const float g_fTime = 60f;

	// Token: 0x04000997 RID: 2455
	[FieldOffset(Offset = "0x34")]
	[Token(Token = "0x4000997")]
	private float g_fTimeVal;

	// Token: 0x04000998 RID: 2456
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4000998")]
	private bool g_bEnter;

	// Token: 0x04000999 RID: 2457
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x4000999")]
	private float g_fCureVal;

	// Token: 0x0400099A RID: 2458
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x400099A")]
	private float g_fSecondCureVal;

	// Token: 0x0400099B RID: 2459
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x400099B")]
	public Transform g_DecalAura;

	// Token: 0x0400099C RID: 2460
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x400099C")]
	private Material g_MatDecalAura;

	// Token: 0x0400099D RID: 2461
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x400099D")]
	private Color g_Color;

	// Token: 0x0400099E RID: 2462
	[Token(Token = "0x400099E")]
	private const float g_fColorSpeed = 6f;

	// Token: 0x0400099F RID: 2463
	[Token(Token = "0x400099F")]
	private const float g_fRotateSpeed = 18f;

	// Token: 0x040009A0 RID: 2464
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40009A0")]
	private bool g_bClose = true;

	// Token: 0x040009A1 RID: 2465
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x40009A1")]
	private float g_fCloseTime;

	// Token: 0x040009A2 RID: 2466
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40009A2")]
	public AreaCure.CureType Type;

	// Token: 0x040009A3 RID: 2467
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40009A3")]
	private SoundEffect soundEffect;

	// Token: 0x040009A4 RID: 2468
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x40009A4")]
	private float g_fSEVolume;

	// Token: 0x020000C6 RID: 198
	[Token(Token = "0x20000C6")]
	public enum CureType
	{
		// Token: 0x040009A6 RID: 2470
		[Token(Token = "0x40009A6")]
		HP,
		// Token: 0x040009A7 RID: 2471
		[Token(Token = "0x40009A7")]
		MP
	}
}
