| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Friday, March 30, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public partial class RefineStoveConfig : ConfigBase { |
| | | |
| | | public int LV { get ; private set ; } |
| | | public int Exp { get ; private set ; } |
| | | public int LV; |
| | | public int Exp; |
| | | public int[] AttrID; |
| | | public int[] AttrValue; |
| | | |
| | |
| | | return LV.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | public override void Parse(string content) { |
| | | try |
| | | { |
| | | LV=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | var contents = content.Split('\t'); |
| | | |
| | | int.TryParse(contents[0],out LV); |
| | | |
| | | Exp=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out Exp); |
| | | |
| | | string[] AttrIDStringArray = rawContents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var AttrIDStringArray = contents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AttrID = new int[AttrIDStringArray.Length]; |
| | | for (int i=0;i<AttrIDStringArray.Length;i++) |
| | | { |
| | | int.TryParse(AttrIDStringArray[i],out AttrID[i]); |
| | | } |
| | | |
| | | string[] AttrValueStringArray = rawContents[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var AttrValueStringArray = contents[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AttrValue = new int[AttrValueStringArray.Length]; |
| | | for (int i=0;i<AttrValueStringArray.Length;i++) |
| | | { |