//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Wednesday, November 07, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class ChatBubbleBoxConfig : ConfigBase { public int ID { get ; private set ; } public string Name { get ; private set; } public int NeedLV { get ; private set ; } public string leftBubbleIcon { get ; private set; } public string rightBubbleIcon { get ; private set; } public int[] leftOffset; public int[] rightOffset; public string Icon { get ; private set; } public int Jump { get ; private set ; } public string GainTip { get ; private set; } public int[] color; public int top { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Name = rawContents[1].Trim(); NeedLV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; leftBubbleIcon = rawContents[3].Trim(); rightBubbleIcon = rawContents[4].Trim(); string[] leftOffsetStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); leftOffset = new int[leftOffsetStringArray.Length]; for (int i=0;i