//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, February 12, 2019
|
//--------------------------------------------------------
|
|
using UnityEngine;
|
using System;
|
|
namespace TableConfig {
|
|
|
public partial class HorseConfig : ConfigBase {
|
|
public int HorseID;
|
public int ItemID;
|
public string Name;
|
public int UnlockItemID;
|
public int UnlockItemCnt;
|
public int InitLV;
|
public int MaxLV;
|
public int UseNeedRank;
|
public int Model;
|
public string IconKey;
|
public int ActionType;
|
public int Quality;
|
public int InitFightPower;
|
public int ShowFightPower;
|
public int Sort;
|
public int[] RideAudios;
|
public string DescribeIconKey;
|
|
public override string getKey()
|
{
|
return HorseID.ToString();
|
}
|
|
public override void Parse(string content) {
|
try
|
{
|
var contents = content.Split('\t');
|
|
int.TryParse(contents[0],out HorseID);
|
|
int.TryParse(contents[1],out ItemID);
|
|
Name = contents[2];
|
|
int.TryParse(contents[3],out UnlockItemID);
|
|
int.TryParse(contents[4],out UnlockItemCnt);
|
|
int.TryParse(contents[5],out InitLV);
|
|
int.TryParse(contents[6],out MaxLV);
|
|
int.TryParse(contents[7],out UseNeedRank);
|
|
int.TryParse(contents[8],out Model);
|
|
IconKey = contents[9];
|
|
int.TryParse(contents[10],out ActionType);
|
|
int.TryParse(contents[11],out Quality);
|
|
int.TryParse(contents[12],out InitFightPower);
|
|
int.TryParse(contents[13],out ShowFightPower);
|
|
int.TryParse(contents[14],out Sort);
|
|
var RideAudiosStringArray = contents[15].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
RideAudios = new int[RideAudiosStringArray.Length];
|
for (int i=0;i<RideAudiosStringArray.Length;i++)
|
{
|
int.TryParse(RideAudiosStringArray[i],out RideAudios[i]);
|
}
|
|
DescribeIconKey = contents[16];
|
}
|
catch (Exception ex)
|
{
|
DebugEx.Log(ex);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|