| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, January 16, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class RealmConfig : ConfigBase { |
| | | |
| | | public int Lv { get ; private set ; }
|
| | | public string Name { get ; private set; } |
| | | public int IsBigRealm { get ; private set ; }
|
| | | public int NeedPoint { get ; private set ; }
|
| | | public int NeedGood { get ; private set ; }
|
| | | public int NeedNum { get ; private set ; }
|
| | | public string NeedActiveTreasure { get ; private set; } |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class RealmConfig : ConfigBase {
|
| | |
|
| | | public int Lv;
|
| | | public string Name;
|
| | | public int IsBigRealm;
|
| | | public int NeedPoint;
|
| | | public int NeedGood;
|
| | | public int NeedNum;
|
| | | public string NeedActiveTreasure;
|
| | | public int[] AddAttrType;
|
| | | public int[] AddAttrNum;
|
| | | public int BossID { get ; private set ; }
|
| | | public string Img { get ; private set; } |
| | | public string SitTime { get ; private set; } |
| | | public int Quality { get ; private set ; }
|
| | | public int FightPower { get ; private set ; }
|
| | | public int specialProperty { get ; private set ; }
|
| | | public int effectId { get ; private set ; }
|
| | | public int requireIconEffect { get ; private set ; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return Lv.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | Lv=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | public int BossID;
|
| | | public string Img;
|
| | | public string SitTime;
|
| | | public int Quality;
|
| | | public int FightPower;
|
| | | public int specialProperty;
|
| | | public int effectId;
|
| | | public int requireIconEffect;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return Lv.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out Lv);
|
| | |
|
| | | Name = rawContents[1].Trim();
|
| | | Name = contents[1];
|
| | |
|
| | | IsBigRealm=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out IsBigRealm);
|
| | |
|
| | | NeedPoint=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out NeedPoint);
|
| | |
|
| | | NeedGood=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out NeedGood);
|
| | |
|
| | | NeedNum=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; |
| | | int.TryParse(contents[5],out NeedNum);
|
| | |
|
| | | NeedActiveTreasure = rawContents[6].Trim();
|
| | | NeedActiveTreasure = contents[6];
|
| | |
|
| | | string[] AddAttrTypeStringArray = rawContents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var AddAttrTypeStringArray = contents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AddAttrType = new int[AddAttrTypeStringArray.Length]; |
| | | for (int i=0;i<AddAttrTypeStringArray.Length;i++) |
| | | { |
| | | int.TryParse(AddAttrTypeStringArray[i],out AddAttrType[i]); |
| | | }
|
| | |
|
| | | string[] AddAttrNumStringArray = rawContents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var AddAttrNumStringArray = contents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | AddAttrNum = new int[AddAttrNumStringArray.Length]; |
| | | for (int i=0;i<AddAttrNumStringArray.Length;i++) |
| | | { |
| | | int.TryParse(AddAttrNumStringArray[i],out AddAttrNum[i]); |
| | | }
|
| | |
|
| | | BossID=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; |
| | | int.TryParse(contents[9],out BossID);
|
| | |
|
| | | Img = rawContents[10].Trim();
|
| | | Img = contents[10];
|
| | |
|
| | | SitTime = rawContents[11].Trim();
|
| | | SitTime = contents[11];
|
| | |
|
| | | Quality=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; |
| | | int.TryParse(contents[12],out Quality);
|
| | |
|
| | | FightPower=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; |
| | | int.TryParse(contents[13],out FightPower);
|
| | |
|
| | | specialProperty=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; |
| | | int.TryParse(contents[14],out specialProperty);
|
| | |
|
| | | effectId=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | int.TryParse(contents[15],out effectId);
|
| | |
|
| | | requireIconEffect=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | int.TryParse(contents[16],out requireIconEffect);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|