using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using MEC;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020002C2 RID: 706
[Token(Token = "0x20002C2")]
public class UIMagicSelector : MonoBehaviour
{
	// Token: 0x06001A66 RID: 6758 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A66")]
	[Address(RVA = "0x101D750", Offset = "0x101C550", VA = "0x18101D750")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A67 RID: 6759 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A67")]
	[Address(RVA = "0x101D990", Offset = "0x101C790", VA = "0x18101D990")]
	public void SetMagicSelectEnable(bool bEnable)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A68 RID: 6760 RVA: 0x0003F23C File Offset: 0x0003D43C
	[Token(Token = "0x6001A68")]
	[Address(RVA = "0x5C6080", Offset = "0x5C4E80", VA = "0x1805C6080")]
	public bool GetMagicSelectEnable()
	{
		return this.isMagicSelectEnabled;
	}

	// Token: 0x06001A69 RID: 6761 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A69")]
	[Address(RVA = "0x101D910", Offset = "0x101C710", VA = "0x18101D910")]
	public bool IsMagicSelected()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A6A RID: 6762 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A6A")]
	[Address(RVA = "0x101DC10", Offset = "0x101CA10", VA = "0x18101DC10")]
	public void SwitchMagic(PlayerEffectPlay.Magic magicType)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A6B RID: 6763 RVA: 0x0003F250 File Offset: 0x0003D450
	[Token(Token = "0x6001A6B")]
	[Address(RVA = "0x101D920", Offset = "0x101C720", VA = "0x18101D920")]
	public void Localize(LocalizationData data)
	{
		GameFontPack fontPack = data.fontPack;
		Text text = this.magicTitleLabel;
		Font regular = fontPack.regular;
		text.font = regular;
		GameFontPack fontPack2 = data.fontPack;
		Text text2 = this.magicDescription;
		Font regular2 = fontPack2.regular;
		text2.font = regular2;
	}

	// Token: 0x06001A6C RID: 6764 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A6C")]
	[Address(RVA = "0x101D590", Offset = "0x101C390", VA = "0x18101D590")]
	public void Dispose()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A6D RID: 6765 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A6D")]
	[Address(RVA = "0x101DE50", Offset = "0x101CC50", VA = "0x18101DE50")]
	private IEnumerator<float> Tick()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A6E RID: 6766 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A6E")]
	[Address(RVA = "0x101DEC0", Offset = "0x101CCC0", VA = "0x18101DEC0")]
	public void UpdateMagicPointer(Vector2 value)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A6F RID: 6767 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A6F")]
	[Address(RVA = "0x101E030", Offset = "0x101CE30", VA = "0x18101E030")]
	private void UpdateMagicSelectUI()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A70 RID: 6768 RVA: 0x0003F2A0 File Offset: 0x0003D4A0
	[Token(Token = "0x6001A70")]
	[Address(RVA = "0x101D5F0", Offset = "0x101C3F0", VA = "0x18101D5F0")]
	private int GetCurrentMagicID(float degree)
	{
		for (;;)
		{
			if (degree <= 135f)
			{
				int num = 0;
				if (degree <= (float)num)
				{
					if (Game.GameSave.stats.thunderMagicLevel > 0)
					{
						break;
					}
				}
				else if (Game.GameSave.stats.iceMagicLevel > 0)
				{
					return 1;
				}
			}
			else if (Game.GameSave.stats.fireMagicLevel > 0)
			{
				return 2;
			}
		}
		return 3;
	}

	// Token: 0x06001A71 RID: 6769 RVA: 0x0003F304 File Offset: 0x0003D504
	[Token(Token = "0x6001A71")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public UIMagicSelector()
	{
	}

	// Token: 0x04002460 RID: 9312
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002460")]
	[SerializeField]
	private UIMagicHandler[] magicHandlers;

	// Token: 0x04002461 RID: 9313
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002461")]
	[SerializeField]
	private Image magicSelectBg;

	// Token: 0x04002462 RID: 9314
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002462")]
	[SerializeField]
	private RectTransform magicSelectArrowRot;

	// Token: 0x04002463 RID: 9315
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002463")]
	[SerializeField]
	private Image magicSelectArrow;

	// Token: 0x04002464 RID: 9316
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002464")]
	[SerializeField]
	private Image magicSelectCenterBlack;

	// Token: 0x04002465 RID: 9317
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4002465")]
	[SerializeField]
	private Image magicSelectReelArray;

	// Token: 0x04002466 RID: 9318
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4002466")]
	[SerializeField]
	private Text magicTitleLabel;

	// Token: 0x04002467 RID: 9319
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4002467")]
	[SerializeField]
	private Text magicDescription;

	// Token: 0x04002468 RID: 9320
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4002468")]
	private bool isMagicSelectEnabled;

	// Token: 0x04002469 RID: 9321
	[FieldOffset(Offset = "0x5C")]
	[Token(Token = "0x4002469")]
	private float magicSelectAlpha;

	// Token: 0x0400246A RID: 9322
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x400246A")]
	private float cursorX;

	// Token: 0x0400246B RID: 9323
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x400246B")]
	private float cursorY;

	// Token: 0x0400246C RID: 9324
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400246C")]
	private float arrowDegree;

	// Token: 0x0400246D RID: 9325
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x400246D")]
	private int preMagicID;

	// Token: 0x0400246E RID: 9326
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x400246E")]
	private int curMagicID;

	// Token: 0x0400246F RID: 9327
	[FieldOffset(Offset = "0x74")]
	[Token(Token = "0x400246F")]
	private CoroutineHandle processor;

	// Token: 0x04002470 RID: 9328
	[Token(Token = "0x4002470")]
	private const float MAGIC_SPEED = 6f;
}
