//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Saturday, January 06, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class FamilyTechConfig : ConfigBase {
|
|
public int techID { get ; private set ; }
|
public int attrType { get ; private set ; }
|
public int attrValue { get ; private set ; }
|
public int needPoint { get ; private set ; }
|
|
public override string getKey()
|
{
|
return techID.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
techID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
attrType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
attrValue=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
|
needPoint=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|