//--------------------------------------------------------
|
// [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<leftOffsetStringArray.Length;i++)
|
{
|
int.TryParse(leftOffsetStringArray[i],out leftOffset[i]);
|
}
|
|
string[] rightOffsetStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
rightOffset = new int[rightOffsetStringArray.Length];
|
for (int i=0;i<rightOffsetStringArray.Length;i++)
|
{
|
int.TryParse(rightOffsetStringArray[i],out rightOffset[i]);
|
}
|
|
Icon = rawContents[7].Trim();
|
|
Jump=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0;
|
|
GainTip = rawContents[9].Trim();
|
|
string[] colorStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
color = new int[colorStringArray.Length];
|
for (int i=0;i<colorStringArray.Length;i++)
|
{
|
int.TryParse(colorStringArray[i],out color[i]);
|
}
|
|
top=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|