| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Saturday, January 06, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public partial class CreateRoleConfig : ConfigBase { |
| | | |
| | | public int job { get ; private set ; } |
| | | public string selectIcon { get ; private set; } |
| | | public string unselectIcon { get ; private set; } |
| | | public int skillid { get ; private set ; } |
| | | public string desc { get ; private set; } |
| | | public int job; |
| | | public string selectIcon; |
| | | public string unselectIcon; |
| | | public int skillid; |
| | | public string desc; |
| | | |
| | | public override string getKey() |
| | | { |
| | | return job.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | public override void Parse(string content) { |
| | | try |
| | | { |
| | | job=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | var contents = content.Split('\t'); |
| | | |
| | | int.TryParse(contents[0],out job); |
| | | |
| | | selectIcon = rawContents[1].Trim(); |
| | | selectIcon = contents[1]; |
| | | |
| | | unselectIcon = rawContents[2].Trim(); |
| | | unselectIcon = contents[2]; |
| | | |
| | | skillid=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out skillid); |
| | | |
| | | desc = rawContents[4].Trim(); |
| | | desc = contents[4]; |
| | | } |
| | | catch (Exception ex) |
| | | { |