| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Saturday, November 10, 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 ; }
|
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class HorseUpConfig : ConfigBase {
|
| | |
|
| | | public int ID;
|
| | | public int HorseID;
|
| | | public int LV;
|
| | | public int NeedExp;
|
| | | public int[] AttrType;
|
| | | public int[] AttrValue;
|
| | | 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; |
| | | public int NeedExpTotal;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return ID.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out ID);
|
| | |
|
| | | HorseID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out HorseID);
|
| | |
|
| | | LV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out LV);
|
| | |
|
| | | NeedExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out NeedExp);
|
| | |
|
| | | string[] AttrTypeStringArray = rawContents[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var AttrTypeStringArray = contents[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AttrType = new int[AttrTypeStringArray.Length]; |
| | | for (int i=0;i<AttrTypeStringArray.Length;i++) |
| | | { |
| | | int.TryParse(AttrTypeStringArray[i],out AttrType[i]); |
| | | }
|
| | |
|
| | | string[] AttrValueStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var AttrValueStringArray = contents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AttrValue = new int[AttrValueStringArray.Length]; |
| | | for (int i=0;i<AttrValueStringArray.Length;i++) |
| | | { |
| | | int.TryParse(AttrValueStringArray[i],out AttrValue[i]); |
| | | }
|
| | |
|
| | | string[] SkillIDStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var SkillIDStringArray = contents[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); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | int.TryParse(contents[7],out NeedExpTotal);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|