summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs
blob: eb4a36e73e3caa049bdb99e18cef4045168b2322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using XMainClient.UI;
using XMainClient.UI.UICommon;

namespace XMainClient.Tutorial.Command
{
	internal class XCommandShowSkills : XBaseCommand
	{
		public override bool Execute()
		{
			bool flag = !string.IsNullOrEmpty(this._cmd.param1);
			if (flag)
			{
				this.Show(int.Parse(this._cmd.param1));
			}
			bool flag2 = !string.IsNullOrEmpty(this._cmd.param2);
			if (flag2)
			{
				this.Show(int.Parse(this._cmd.param2));
			}
			bool flag3 = !string.IsNullOrEmpty(this._cmd.param3);
			if (flag3)
			{
				this.Show(int.Parse(this._cmd.param3));
			}
			base.publicModule();
			return true;
		}

		private void Show(int idx)
		{
			bool flag = DlgBase<BattleMain, BattleMainBehaviour>.singleton.IsLoaded();
			if (flag)
			{
				DlgBase<BattleMain, BattleMainBehaviour>.singleton.SkillHandler.EnableSkill(idx);
			}
		}
	}
}