//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Saturday, January 06, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class AppointItemConfig : ConfigBase { public int ID { get ; private set ; } public int SuiteLv { get ; private set ; } public int CancelUseLimit { get ; private set ; } public int[] LegendAttrID; public int[] LegendAttrValue; public int[] OutOfPrintAttr; public int[] OutOfPrintAttrValue; public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; SuiteLv=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; CancelUseLimit=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; string[] LegendAttrIDStringArray = rawContents[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); LegendAttrID = new int[LegendAttrIDStringArray.Length]; for (int i=0;i