//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class MarketQueryConfig : ConfigBase {
|
|
public int queryType;
|
public int[] ChooseType;
|
|
public override string getKey()
|
{
|
return queryType.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out queryType);
|
|
var ChooseTypeStringArray = contents[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
ChooseType = new int[ChooseTypeStringArray.Length];
|
for (int i=0;i<ChooseTypeStringArray.Length;i++)
|
{
|
int.TryParse(ChooseTypeStringArray[i],out ChooseType[i]);
|
}
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|