| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, December 19, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class ResourcesBackConfig : ConfigBase { |
| | | |
| | | public int ID { get ; private set ; }
|
| | | public int RelatedID { get ; private set ; }
|
| | | public int CanBackTimes { get ; private set ; }
|
| | | public int NormalCostJade { get ; private set ; }
|
| | | public int VipCostJade { get ; private set ; }
|
| | | public string JadeReward { get ; private set; } |
| | | public int CostCopper { get ; private set ; }
|
| | | public string CopperReward { get ; private set; } |
| | | public string JobItem { get ; private set; } |
| | | public string RewardList { get ; private set; } |
| | | |
| | | 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 ResourcesBackConfig : ConfigBase {
|
| | |
|
| | | public int ID;
|
| | | public int RelatedID;
|
| | | public int CanBackTimes;
|
| | | public int NormalCostJade;
|
| | | public int VipCostJade;
|
| | | public string JadeReward;
|
| | | public int CostCopper;
|
| | | public string CopperReward;
|
| | | public string JobItem;
|
| | | public string RewardList;
|
| | |
|
| | | 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);
|
| | |
|
| | | RelatedID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out RelatedID);
|
| | |
|
| | | CanBackTimes=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out CanBackTimes);
|
| | |
|
| | | NormalCostJade=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out NormalCostJade);
|
| | |
|
| | | VipCostJade=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out VipCostJade);
|
| | |
|
| | | JadeReward = rawContents[5].Trim();
|
| | | JadeReward = contents[5];
|
| | |
|
| | | CostCopper=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | int.TryParse(contents[6],out CostCopper);
|
| | |
|
| | | CopperReward = rawContents[7].Trim();
|
| | | CopperReward = contents[7];
|
| | |
|
| | | JobItem = rawContents[8].Trim();
|
| | | JobItem = contents[8];
|
| | |
|
| | | RewardList = rawContents[9].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | RewardList = contents[9];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|