| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, July 31, 2018 |
| | | // [ Date ]: Thursday, October 25, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class HorseConfig : ConfigBase {
|
| | |
|
| | | public partial class HorseConfig : ConfigBase { |
| | | |
| | | public int HorseID { get ; private set ; }
|
| | | public int ItemID { get ; private set ; }
|
| | | public string Name { get ; private set; }
|
| | |
| | | public int ShowFightPower { get ; private set ; }
|
| | | public int Sort { get ; private set ; }
|
| | | public int[] RideAudios;
|
| | | public string DescribeIconKey { get ; private set; } |
| | | |
| | | public override string getKey()
|
| | | {
|
| | | return HorseID.ToString();
|
| | | public override string getKey() |
| | | { |
| | | return HorseID.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try
|
| | | {
|
| | | try |
| | | { |
| | | HorseID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
| | |
|
| | | ItemID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
| | |
| | | { |
| | | int.TryParse(RideAudiosStringArray[i],out RideAudios[i]); |
| | | }
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | |
| | | DescribeIconKey = rawContents[16].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |