//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, July 12, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class DienstgradConfig : ConfigBase { public int ID { get ; private set ; } public string Name { get ; private set; } public int Type { get ; private set ; } public int Prescription { get ; private set ; } public string OutTimeDesc { get ; private set; } public int[] LightType; public int[] LightAttribute; public string Image { get ; private set; } public string Content { get ; private set; } public int[] Skills; public int gotoId { get ; private set ; } public int missionId { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Name = rawContents[1].Trim(); Type=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; Prescription=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; OutTimeDesc = rawContents[4].Trim(); string[] LightTypeStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); LightType = new int[LightTypeStringArray.Length]; for (int i=0;i