//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Monday, October 15, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class AttrFruitConfig : ConfigBase {
|
|
public int ID { get ; private set ; }
|
public int FuncID { get ; private set ; }
|
public int MaxUseCnt { get ; private set ; }
|
public int RecycleExp { get ; private set ; }
|
public int Sort { get ; private set ; }
|
public int[] RecipeLv;
|
|
public override string getKey()
|
{
|
return ID.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
FuncID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
MaxUseCnt=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
|
RecycleExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
Sort=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
|
|
string[] RecipeLvStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
RecipeLv = new int[RecipeLvStringArray.Length];
|
for (int i=0;i<RecipeLvStringArray.Length;i++)
|
{
|
int.TryParse(RecipeLvStringArray[i],out RecipeLv[i]);
|
}
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|