//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class SysInfoConfig : ConfigBase {
|
|
public string key;
|
public string sound;
|
public string effect;
|
public int[] type;
|
public string richText;
|
public int order;
|
|
public override string getKey()
|
{
|
return key.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
key = contents[0];
|
|
sound = contents[1];
|
|
effect = contents[2];
|
|
var typeStringArray = contents[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 = contents[4];
|
|
int.TryParse(contents[5],out order);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|