//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Thursday, December 13, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class GatherSoulComposeConfig : ConfigBase {
|
|
public int TagItemID { get ; private set ; }
|
public int NeedLV { get ; private set ; }
|
public int[] NeedItem;
|
public int NeedSoulSplinters { get ; private set ; }
|
public int NeedSoulCore { get ; private set ; }
|
public int category { get ; private set ; }
|
|
public override string getKey()
|
{
|
return TagItemID.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
TagItemID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
NeedLV=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
string[] NeedItemStringArray = rawContents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
NeedItem = new int[NeedItemStringArray.Length];
|
for (int i=0;i<NeedItemStringArray.Length;i++)
|
{
|
int.TryParse(NeedItemStringArray[i],out NeedItem[i]);
|
}
|
|
NeedSoulSplinters=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
NeedSoulCore=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
|
|
category=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|