//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, November 13, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class MarketQueryConfig : ConfigBase {
|
|
public int queryType { get ; private set ; }
|
public int[] ChooseType;
|
|
public override string getKey()
|
{
|
return queryType.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
queryType=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
string[] ChooseTypeStringArray = rawContents[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);
|
}
|
}
|
|
}
|
|
}
|