using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200020F RID: 527
[Token(Token = "0x200020F")]
public class SwitchDevice_Fire : SwitchDevice
{
	// Token: 0x0600153D RID: 5437 RVA: 0x0003059C File Offset: 0x0002E79C
	[Token(Token = "0x600153D")]
	[Address(RVA = "0x98A9E0", Offset = "0x9899E0", VA = "0x18098A9E0", Slot = "4")]
	public override void Init()
	{
		base.Init();
		if (!this.g_bLightEnable)
		{
		}
		float num = this.g_fDefaultIntensity;
		this.g_fIntensity = num;
		GameObject se_Recovery = this.SE_Recovery;
		this.g_fRandomIntensityVal = 0f;
		Transform transform = base.transform;
		SoundEffect soundEffectOfPrefabs = Common.GetSoundEffectOfPrefabs(se_Recovery, transform);
		this.g_SERecovery = soundEffectOfPrefabs;
		Game.BindStageTimeScale(this.g_SERecovery);
	}

	// Token: 0x0600153E RID: 5438 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600153E")]
	[Address(RVA = "0x98AD90", Offset = "0x989D90", VA = "0x18098AD90", Slot = "6")]
	protected override void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600153F RID: 5439 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600153F")]
	[Address(RVA = "0x98A710", Offset = "0x989710", VA = "0x18098A710", Slot = "10")]
	public override void HitMagic(AttackData AD)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001540 RID: 5440 RVA: 0x000305FC File Offset: 0x0002E7FC
	[Token(Token = "0x6001540")]
	[Address(RVA = "0x98AAB0", Offset = "0x989AB0", VA = "0x18098AAB0", Slot = "14")]
	public override void SetDamage()
	{
		base.SetDamage();
		this.g_bLightEnable = false;
	}

	// Token: 0x06001541 RID: 5441 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001541")]
	[Address(RVA = "0x98AAD0", Offset = "0x989AD0", VA = "0x18098AAD0", Slot = "15")]
	public override void SetRecovery()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001542 RID: 5442 RVA: 0x00030618 File Offset: 0x0002E818
	[Token(Token = "0x6001542")]
	[Address(RVA = "0x98AF40", Offset = "0x989F40", VA = "0x18098AF40")]
	public SwitchDevice_Fire()
	{
		this.g_bSound = true;
		base..ctor();
	}

	// Token: 0x04002042 RID: 8258
	[FieldOffset(Offset = "0x1A8")]
	[Token(Token = "0x4002042")]
	public Light FireLight;

	// Token: 0x04002043 RID: 8259
	[FieldOffset(Offset = "0x1B0")]
	[Token(Token = "0x4002043")]
	private bool g_bLightEnable = true;

	// Token: 0x04002044 RID: 8260
	[FieldOffset(Offset = "0x1B4")]
	[Token(Token = "0x4002044")]
	private float g_fDefaultIntensity = 9f;

	// Token: 0x04002045 RID: 8261
	[FieldOffset(Offset = "0x1B8")]
	[Token(Token = "0x4002045")]
	private float g_fRandomIntensity = 1f;

	// Token: 0x04002046 RID: 8262
	[FieldOffset(Offset = "0x1BC")]
	[Token(Token = "0x4002046")]
	private float g_fSpeed = 5f;

	// Token: 0x04002047 RID: 8263
	[FieldOffset(Offset = "0x1C0")]
	[Token(Token = "0x4002047")]
	private float g_fIntensity;

	// Token: 0x04002048 RID: 8264
	[FieldOffset(Offset = "0x1C4")]
	[Token(Token = "0x4002048")]
	private float g_fRandomIntensityVal;

	// Token: 0x04002049 RID: 8265
	[FieldOffset(Offset = "0x1C8")]
	[Token(Token = "0x4002049")]
	public SceneEvent[] RecoveryOpenEvent;

	// Token: 0x0400204A RID: 8266
	[FieldOffset(Offset = "0x1D0")]
	[Token(Token = "0x400204A")]
	public GameObject SE_Recovery;

	// Token: 0x0400204B RID: 8267
	[FieldOffset(Offset = "0x1D8")]
	[Token(Token = "0x400204B")]
	private SoundEffect g_SERecovery;
}
