//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, August 28, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class DemonJarConfig : ConfigBase { public int NPCID { get ; private set ; } public int LineID { get ; private set ; } public int Time { get ; private set ; } public string MustItemID { get ; private set; } public string MustItemDescriptions { get ; private set; } public int[] RareItemID; public string PortraitID { get ; private set; } public int SpecialItemMark { get ; private set ; } public int CanEnterTimes { get ; private set ; } public int AutoAttention { get ; private set ; } public int[] Job1; public int[] Job2; public int[] Job3; public int KillHurtMin { get ; private set ; } public int KillHurtMax { get ; private set ; } public override string getKey() { return NPCID.ToString(); } public override void Parse() { try { NPCID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; LineID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; Time=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; MustItemID = rawContents[3].Trim(); MustItemDescriptions = rawContents[4].Trim(); string[] RareItemIDStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); RareItemID = new int[RareItemIDStringArray.Length]; for (int i=0;i