//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Saturday, January 06, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class DungeonHintConfig : ConfigBase { public int ID { get ; private set ; } public int dataMapId { get ; private set ; } public int LineId { get ; private set ; } public int targetNum { get ; private set ; } public string[] targetDescription1; public int targetType1 { get ; private set ; } public int[] NPC1ID; public int[] targetValue1; public string[] targetDescription2; public int targetType2 { get ; private set ; } public int[] NPC2ID; public int[] targetValue2; public string[] targetDescription3; public int targetType3 { get ; private set ; } public int[] NPC3ID; public int[] targetValue3; public string[] Info; public string mark { get ; private set; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; dataMapId=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; LineId=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; targetNum=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; targetDescription1 = rawContents[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); targetType1=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; string[] NPC1IDStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); NPC1ID = new int[NPC1IDStringArray.Length]; for (int i=0;i