//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, February 12, 2019 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class FamilyTechConfig : ConfigBase { public int techID; public int attrType; public int attrValue; public int needPoint; public override string getKey() { return techID.ToString(); } public override void Parse(string content) { try { var contents = content.Split('\t'); int.TryParse(contents[0],out techID); int.TryParse(contents[1],out attrType); int.TryParse(contents[2],out attrValue); int.TryParse(contents[3],out needPoint); } catch (Exception ex) { DebugEx.Log(ex); } } } }