| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Saturday, January 06, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public partial class PetEatEquipConfig : ConfigBase { |
| | | |
| | | public int ID { get ; private set ; } |
| | | public int EquipColor { get ; private set ; } |
| | | public int EquipClass { get ; private set ; } |
| | | public int Exp { get ; private set ; } |
| | | public int integrate { get ; private set ; } |
| | | public int ID; |
| | | public int EquipColor; |
| | | public int EquipClass; |
| | | public int Exp; |
| | | public int integrate; |
| | | |
| | | 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); |
| | | |
| | | EquipColor=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out EquipColor); |
| | | |
| | | EquipClass=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out EquipClass); |
| | | |
| | | Exp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out Exp); |
| | | |
| | | integrate=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out integrate); |
| | | } |
| | | catch (Exception ex) |
| | | { |