| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, December 04, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class AttrFruitConfig : ConfigBase { |
| | | |
| | | public int ID { get ; private set ; }
|
| | | public int FuncID { get ; private set ; }
|
| | | public int MaxUseCnt { get ; private set ; }
|
| | | public int RecycleExp { get ; private set ; }
|
| | | public int FightPowerEx { get ; private set ; }
|
| | | public int Sort { get ; private set ; }
|
| | | public int[] RecipeLv; |
| | | |
| | | public override string getKey() |
| | | { |
| | | return ID.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class AttrFruitConfig : ConfigBase {
|
| | |
|
| | | public int ID;
|
| | | public int FuncID;
|
| | | public int MaxUseCnt;
|
| | | public int RecycleExp;
|
| | | public int FightPowerEx;
|
| | | public int Sort;
|
| | | public int[] RecipeLv;
|
| | |
|
| | | 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);
|
| | |
|
| | | FuncID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out FuncID);
|
| | |
|
| | | MaxUseCnt=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out MaxUseCnt);
|
| | |
|
| | | RecycleExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out RecycleExp);
|
| | |
|
| | | FightPowerEx=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out FightPowerEx);
|
| | |
|
| | | Sort=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; |
| | | int.TryParse(contents[5],out Sort);
|
| | |
|
| | | string[] RecipeLvStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var RecipeLvStringArray = contents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | RecipeLv = new int[RecipeLvStringArray.Length]; |
| | | for (int i=0;i<RecipeLvStringArray.Length;i++) |
| | | { |
| | | int.TryParse(RecipeLvStringArray[i],out RecipeLv[i]); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | }
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|