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

// Token: 0x020000AE RID: 174
[Token(Token = "0x20000AE")]
public class AreaCure : MonoBehaviour
{
	// Token: 0x060007B9 RID: 1977 RVA: 0x0001199C File Offset: 0x0000FB9C
	[Token(Token = "0x60007B9")]
	[Address(RVA = "0x8CF5E0", Offset = "0x8CE3E0", VA = "0x1808CF5E0")]
	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: 0x060007BA RID: 1978 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60007BA")]
	[Address(RVA = "0x8CF770", Offset = "0x8CE570", VA = "0x1808CF770")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060007BB RID: 1979 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60007BB")]
	[Address(RVA = "0x8CF3B0", Offset = "0x8CE1B0", VA = "0x1808CF3B0")]
	public void Set(float fSecondCureVal, SoundEffectPool soundEffectPool)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060007BC RID: 1980 RVA: 0x00011A14 File Offset: 0x0000FC14
	[Token(Token = "0x60007BC")]
	[Address(RVA = "0x8CF2F0", Offset = "0x8CE0F0", VA = "0x1808CF2F0")]
	private void OnTriggerEnter(Collider Enter)
	{
		if (Enter.CompareTag("Player"))
		{
			this.g_bEnter = true;
		}
	}

	// Token: 0x060007BD RID: 1981 RVA: 0x00011A3C File Offset: 0x0000FC3C
	[Token(Token = "0x60007BD")]
	[Address(RVA = "0x8CF350", Offset = "0x8CE150", VA = "0x1808CF350")]
	private void OnTriggerExit(Collider Exit)
	{
		if (Exit.CompareTag("Player"))
		{
			this.g_bEnter = false;
		}
	}

	// Token: 0x060007BE RID: 1982 RVA: 0x00011A64 File Offset: 0x0000FC64
	[Token(Token = "0x60007BE")]
	[Address(RVA = "0x8CFBF0", Offset = "0x8CE9F0", VA = "0x1808CFBF0")]
	public AreaCure()
	{
	}

	// Token: 0x0400090F RID: 2319
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x400090F")]
	private ParticleSystem g_PS;

	// Token: 0x04000910 RID: 2320
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4000910")]
	private WizardGirlManage g_WGM;

	// Token: 0x04000911 RID: 2321
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4000911")]
	public Light LPoint;

	// Token: 0x04000912 RID: 2322
	[Token(Token = "0x4000912")]
	private const float g_fLightIntensity = 1.5f;

	// Token: 0x04000913 RID: 2323
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4000913")]
	private float g_fLightIntensityVal;

	// Token: 0x04000914 RID: 2324
	[Token(Token = "0x4000914")]
	private const float g_fTime = 60f;

	// Token: 0x04000915 RID: 2325
	[FieldOffset(Offset = "0x34")]
	[Token(Token = "0x4000915")]
	private float g_fTimeVal;

	// Token: 0x04000916 RID: 2326
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4000916")]
	private bool g_bEnter;

	// Token: 0x04000917 RID: 2327
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x4000917")]
	private float g_fCureVal;

	// Token: 0x04000918 RID: 2328
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4000918")]
	private float g_fSecondCureVal;

	// Token: 0x04000919 RID: 2329
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4000919")]
	public Transform g_DecalAura;

	// Token: 0x0400091A RID: 2330
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x400091A")]
	private Material g_MatDecalAura;

	// Token: 0x0400091B RID: 2331
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x400091B")]
	private Color g_Color;

	// Token: 0x0400091C RID: 2332
	[Token(Token = "0x400091C")]
	private const float g_fColorSpeed = 6f;

	// Token: 0x0400091D RID: 2333
	[Token(Token = "0x400091D")]
	private const float g_fRotateSpeed = 18f;

	// Token: 0x0400091E RID: 2334
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400091E")]
	private bool g_bClose = true;

	// Token: 0x0400091F RID: 2335
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x400091F")]
	private float g_fCloseTime;

	// Token: 0x04000920 RID: 2336
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4000920")]
	public AreaCure.CureType Type;

	// Token: 0x04000921 RID: 2337
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4000921")]
	private SoundEffect soundEffect;

	// Token: 0x04000922 RID: 2338
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4000922")]
	private float g_fSEVolume;

	// Token: 0x020000AF RID: 175
	[Token(Token = "0x20000AF")]
	public enum CureType
	{
		// Token: 0x04000924 RID: 2340
		[Token(Token = "0x4000924")]
		HP,
		// Token: 0x04000925 RID: 2341
		[Token(Token = "0x4000925")]
		MP
	}
}
