//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Saturday, January 06, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class GodWeaponConfig : ConfigBase { public int ID { get ; private set ; } public int Type { get ; private set ; } public string Name { get ; private set; } public int Lv { get ; private set ; } public int NeedExp { get ; private set ; } public int[] AttrType; public int[] AttrNum; public int SkillID { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Type=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; Name = rawContents[2].Trim(); Lv=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; NeedExp=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; string[] AttrTypeStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); AttrType = new int[AttrTypeStringArray.Length]; for (int i=0;i