//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, July 20, 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 int[] MustItemID; 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; string[] MustItemIDStringArray = rawContents[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); MustItemID = new int[MustItemIDStringArray.Length]; for (int i=0;i