//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Monday, March 19, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class SysInfoConfig : ConfigBase {
|
|
public string key { get ; private set; }
|
public string sound { get ; private set; }
|
public string effect { get ; private set; }
|
public int[] type;
|
public string richText { get ; private set; }
|
public int order { get ; private set ; }
|
|
public override string getKey()
|
{
|
return key.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
key = rawContents[0].Trim();
|
|
sound = rawContents[1].Trim();
|
|
effect = rawContents[2].Trim();
|
|
string[] typeStringArray = rawContents[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
type = new int[typeStringArray.Length];
|
for (int i=0;i<typeStringArray.Length;i++)
|
{
|
int.TryParse(typeStringArray[i],out type[i]);
|
}
|
|
richText = rawContents[4].Trim();
|
|
order=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|