//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class AttrFruitConfig : ConfigBase {
|
|
public int ID;
|
public int FuncID;
|
public int MaxUseCnt;
|
public int RecycleExp;
|
public int FightPowerEx;
|
public int Sort;
|
public int[] RecipeLv;
|
|
public override string getKey()
|
{
|
return ID.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out ID);
|
|
int.TryParse(contents[1],out FuncID);
|
|
int.TryParse(contents[2],out MaxUseCnt);
|
|
int.TryParse(contents[3],out RecycleExp);
|
|
int.TryParse(contents[4],out FightPowerEx);
|
|
int.TryParse(contents[5],out Sort);
|
|
var RecipeLvStringArray = contents[6].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);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|