| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Saturday, November 10, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class PetInfoConfig : ConfigBase { |
| | | |
| | | public int ID { get ; private set ; }
|
| | | public string Name { get ; private set; } |
| | | public int Quality { get ; private set ; }
|
| | | public int UnLockNeedItemID { get ; private set ; }
|
| | | public int UnLockNeedItemCnt { get ; private set ; }
|
| | | public int DecomposeExp { get ; private set ; }
|
| | | public int InitRank { get ; private set ; }
|
| | | public int MaxRank { get ; private set ; }
|
| | | public int UseNeedRank { get ; private set ; }
|
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class PetInfoConfig : ConfigBase {
|
| | |
|
| | | public int ID;
|
| | | public string Name;
|
| | | public int Quality;
|
| | | public int UnLockNeedItemID;
|
| | | public int UnLockNeedItemCnt;
|
| | | public int DecomposeExp;
|
| | | public int InitRank;
|
| | | public int MaxRank;
|
| | | public int UseNeedRank;
|
| | | public int[] SkillID;
|
| | | public int[] SkillScore;
|
| | | public int[] SkillUnLock;
|
| | | public int[] ShowSkill;
|
| | | public string IconKey { 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 void Parse() { |
| | | try |
| | | { |
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | public string IconKey;
|
| | | public string InitFightPower;
|
| | | public int ShowFightPower;
|
| | | public int Sort;
|
| | | public string DescribeIconKey;
|
| | |
|
| | | 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);
|
| | |
|
| | | Name = rawContents[1].Trim();
|
| | | Name = contents[1];
|
| | |
|
| | | Quality=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out Quality);
|
| | |
|
| | | UnLockNeedItemID=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out UnLockNeedItemID);
|
| | |
|
| | | UnLockNeedItemCnt=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out UnLockNeedItemCnt);
|
| | |
|
| | | DecomposeExp=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; |
| | | int.TryParse(contents[5],out DecomposeExp);
|
| | |
|
| | | InitRank=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | int.TryParse(contents[6],out InitRank);
|
| | |
|
| | | MaxRank=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; |
| | | int.TryParse(contents[7],out MaxRank);
|
| | |
|
| | | UseNeedRank=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; |
| | | int.TryParse(contents[8],out UseNeedRank);
|
| | |
|
| | | string[] SkillIDStringArray = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var SkillIDStringArray = contents[9].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]); |
| | | }
|
| | |
|
| | | string[] SkillScoreStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var SkillScoreStringArray = contents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | SkillScore = new int[SkillScoreStringArray.Length]; |
| | | for (int i=0;i<SkillScoreStringArray.Length;i++) |
| | | { |
| | | int.TryParse(SkillScoreStringArray[i],out SkillScore[i]); |
| | | }
|
| | |
|
| | | string[] SkillUnLockStringArray = rawContents[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var SkillUnLockStringArray = contents[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | SkillUnLock = new int[SkillUnLockStringArray.Length]; |
| | | for (int i=0;i<SkillUnLockStringArray.Length;i++) |
| | | { |
| | | int.TryParse(SkillUnLockStringArray[i],out SkillUnLock[i]); |
| | | }
|
| | |
|
| | | string[] ShowSkillStringArray = rawContents[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var ShowSkillStringArray = contents[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | ShowSkill = new int[ShowSkillStringArray.Length]; |
| | | for (int i=0;i<ShowSkillStringArray.Length;i++) |
| | | { |
| | | int.TryParse(ShowSkillStringArray[i],out ShowSkill[i]); |
| | | }
|
| | |
|
| | | IconKey = rawContents[13].Trim();
|
| | | IconKey = contents[13];
|
| | |
|
| | | InitFightPower = rawContents[14].Trim();
|
| | | InitFightPower = contents[14];
|
| | |
|
| | | ShowFightPower=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | int.TryParse(contents[15],out ShowFightPower);
|
| | |
|
| | | Sort=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; |
| | | int.TryParse(contents[16],out Sort);
|
| | |
|
| | | DescribeIconKey = rawContents[17].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | DescribeIconKey = contents[17];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|