//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class TreasureUpConfig : ConfigBase {
|
|
public int ID;
|
public int MWID;
|
public int LV;
|
public int NeedExp;
|
public string AddAttr;
|
public int[] UnLockSkill;
|
public int UnLockFuncID;
|
public int ActiveMWID;
|
public string ItemAward;
|
public int SoulID;
|
public int PowerEx;
|
public string DescriptionMainWin;
|
|
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 MWID);
|
|
int.TryParse(contents[2],out LV);
|
|
int.TryParse(contents[3],out NeedExp);
|
|
AddAttr = contents[4];
|
|
var UnLockSkillStringArray = contents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
UnLockSkill = new int[UnLockSkillStringArray.Length];
|
for (int i=0;i<UnLockSkillStringArray.Length;i++)
|
{
|
int.TryParse(UnLockSkillStringArray[i],out UnLockSkill[i]);
|
}
|
|
int.TryParse(contents[6],out UnLockFuncID);
|
|
int.TryParse(contents[7],out ActiveMWID);
|
|
ItemAward = contents[8];
|
|
int.TryParse(contents[9],out SoulID);
|
|
int.TryParse(contents[10],out PowerEx);
|
|
DescriptionMainWin = contents[11];
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|