//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class ResourcesBackConfig : ConfigBase {
|
|
public int ID;
|
public int RelatedID;
|
public int CanBackTimes;
|
public int NormalCostJade;
|
public int VipCostJade;
|
public string JadeReward;
|
public int CostCopper;
|
public string CopperReward;
|
public string JobItem;
|
public string RewardList;
|
|
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 RelatedID);
|
|
int.TryParse(contents[2],out CanBackTimes);
|
|
int.TryParse(contents[3],out NormalCostJade);
|
|
int.TryParse(contents[4],out VipCostJade);
|
|
JadeReward = contents[5];
|
|
int.TryParse(contents[6],out CostCopper);
|
|
CopperReward = contents[7];
|
|
JobItem = contents[8];
|
|
RewardList = contents[9];
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|