//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, June 12, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class ActorShowConfig : ConfigBase { public int ID { get ; private set ; } public int NpcID { get ; private set ; } public int MapID { get ; private set ; } public int line { get ; private set ; } public int[] showNpcs; public int length { get ; private set ; } public int showNameTime { get ; private set ; } public int BindMissionID { get ; private set ; } public int type { get ; private set ; } public int[] scale; public int[] NpcFace; public int[] PosX; public int[] PosY; public int shadow { get ; private set ; } public int effect { get ; private set ; } public int uieffect { get ; private set ; } public string[] mob; public string cam { get ; private set; } public int[] Height; public int DialogueTime { get ; private set ; } public int Dialogue { get ; private set ; } public int soundId { get ; private set ; } public int soundTime { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; NpcID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; MapID=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; line=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; string[] showNpcsStringArray = rawContents[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); showNpcs = new int[showNpcsStringArray.Length]; for (int i=0;i