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