//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 27, 2018
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class HorseUpConfig : ConfigBase {
|
|
public int ID { get ; private set ; }
|
public int HorseID { get ; private set ; }
|
public int LV { get ; private set ; }
|
public int NeedExp { get ; private set ; }
|
public string AttrType { get ; private set; }
|
public string AttrValue { get ; private set; }
|
public int[] SkillID;
|
public int NeedExpTotal { get ; private set ; }
|
|
public override string getKey()
|
{
|
return ID.ToString();
|
}
|
|
public override void Parse() {
|
try
|
{
|
ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
|
HorseID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
|
LV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
|
NeedExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
|
|
AttrType = rawContents[4].Trim();
|
|
AttrValue = rawContents[5].Trim();
|
|
string[] SkillIDStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
SkillID = new int[SkillIDStringArray.Length];
|
for (int i=0;i<SkillIDStringArray.Length;i++)
|
{
|
int.TryParse(SkillIDStringArray[i],out SkillID[i]);
|
}
|
|
NeedExpTotal=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0;
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|