//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class CTGConfig : ConfigBase {
|
|
public int RecordID;
|
public string Title;
|
public int DailyBuyCount;
|
public int GainGold;
|
public int GainGoldPaper;
|
public int FirstGoldPaperPrize;
|
public string GainItemList;
|
public string Icon;
|
public int PayType;
|
|
public override string getKey()
|
{
|
return RecordID.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out RecordID);
|
|
Title = contents[1];
|
|
int.TryParse(contents[2],out DailyBuyCount);
|
|
int.TryParse(contents[3],out GainGold);
|
|
int.TryParse(contents[4],out GainGoldPaper);
|
|
int.TryParse(contents[5],out FirstGoldPaperPrize);
|
|
GainItemList = contents[6];
|
|
Icon = contents[7];
|
|
int.TryParse(contents[8],out PayType);
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|