| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, April 19, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public partial class AlchemySpecConfig : ConfigBase { |
| | | |
| | | public int ID { get ; private set ; } |
| | | public int SpecialMaterialD { get ; private set ; } |
| | | public int SpecialMateriaNUM { get ; private set ; } |
| | | public int AlchemyEXP { get ; private set ; } |
| | | public string AlchemyItem { get ; private set; } |
| | | public string AlchemPreviewItem { get ; private set; } |
| | | public int BlastFurnaceLV { get ; private set ; } |
| | | public string Introduce { get ; private set; } |
| | | public int ID; |
| | | public int SpecialMaterialD; |
| | | public int SpecialMateriaNUM; |
| | | public int AlchemyEXP; |
| | | public string AlchemyItem; |
| | | public string AlchemPreviewItem; |
| | | public int BlastFurnaceLV; |
| | | public string Introduce; |
| | | |
| | | public override string getKey() |
| | | { |
| | | return ID.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | public override void Parse(string content) { |
| | | try |
| | | { |
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | var contents = content.Split('\t'); |
| | | |
| | | int.TryParse(contents[0],out ID); |
| | | |
| | | SpecialMaterialD=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out SpecialMaterialD); |
| | | |
| | | SpecialMateriaNUM=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out SpecialMateriaNUM); |
| | | |
| | | AlchemyEXP=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out AlchemyEXP); |
| | | |
| | | AlchemyItem = rawContents[4].Trim(); |
| | | AlchemyItem = contents[4]; |
| | | |
| | | AlchemPreviewItem = rawContents[5].Trim(); |
| | | AlchemPreviewItem = contents[5]; |
| | | |
| | | BlastFurnaceLV=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | int.TryParse(contents[6],out BlastFurnaceLV); |
| | | |
| | | Introduce = rawContents[7].Trim(); |
| | | Introduce = contents[7]; |
| | | } |
| | | catch (Exception ex) |
| | | { |