//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Saturday, January 06, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class BossInfoConfig : ConfigBase { public int NPCID { get ; private set ; } public int MapID { get ; private set ; } public int StoneNPCID { get ; private set ; } public override string getKey() { return NPCID.ToString(); } public override void Parse() { try { NPCID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; MapID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; StoneNPCID=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; } catch (Exception ex) { DebugEx.Log(ex); } } } }