//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class ItemPlusConfig : ConfigBase {
|
|
public int id;
|
public int type;
|
public int level;
|
public string attType;
|
public string attValue;
|
public int costCount;
|
public int getExp;
|
public int upExpNeed;
|
public int upExpTotal;
|
|
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 type);
|
|
int.TryParse(contents[2],out level);
|
|
attType = contents[3];
|
|
attValue = contents[4];
|
|
int.TryParse(contents[5],out costCount);
|
|
int.TryParse(contents[6],out getExp);
|
|
int.TryParse(contents[7],out upExpNeed);
|
|
int.TryParse(contents[8],out upExpTotal);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|