//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class EquipWashConfig : ConfigBase {
|
|
public int id;
|
public int type;
|
public int level;
|
public int attType1;
|
public int attMax1;
|
public int attCostMoneyMin1;
|
public int attCostMoneyMax1;
|
public int attType2;
|
public int attMax2;
|
public int attCostMoneyMin2;
|
public int attCostMoneyMax2;
|
public int attType3;
|
public int attMax3;
|
public int attCostMoneyMin3;
|
public int attCostMoneyMax3;
|
public int costItem;
|
public int costCount;
|
public string costMoneyList;
|
|
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);
|
|
int.TryParse(contents[3],out attType1);
|
|
int.TryParse(contents[4],out attMax1);
|
|
int.TryParse(contents[5],out attCostMoneyMin1);
|
|
int.TryParse(contents[6],out attCostMoneyMax1);
|
|
int.TryParse(contents[7],out attType2);
|
|
int.TryParse(contents[8],out attMax2);
|
|
int.TryParse(contents[9],out attCostMoneyMin2);
|
|
int.TryParse(contents[10],out attCostMoneyMax2);
|
|
int.TryParse(contents[11],out attType3);
|
|
int.TryParse(contents[12],out attMax3);
|
|
int.TryParse(contents[13],out attCostMoneyMin3);
|
|
int.TryParse(contents[14],out attCostMoneyMax3);
|
|
int.TryParse(contents[15],out costItem);
|
|
int.TryParse(contents[16],out costCount);
|
|
costMoneyList = contents[17];
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|