| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, May 15, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public partial class TreasureFindHostConfig : ConfigBase { |
| | | |
| | | public int ID { get ; private set ; } |
| | | public int Type { get ; private set ; } |
| | | public int NeedCnt { get ; private set ; } |
| | | public string Condition { get ; private set; } |
| | | public int MagicWeaponID { get ; private set ; } |
| | | public string AwardItemList { get ; private set; } |
| | | public string Money { get ; private set; } |
| | | public string AdviceIds { get ; private set; } |
| | | public int JumpID { get ; private set ; } |
| | | public int ID; |
| | | public int Type; |
| | | public int NeedCnt; |
| | | public string Condition; |
| | | public int MagicWeaponID; |
| | | public string AwardItemList; |
| | | public string Money; |
| | | public string AdviceIds; |
| | | public int JumpID; |
| | | public string[] EffectIconKeys; |
| | | |
| | | public override string getKey() |
| | |
| | | return ID.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | public override void Parse(string content) { |
| | | try |
| | | { |
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | var contents = content.Split('\t'); |
| | | |
| | | int.TryParse(contents[0],out ID); |
| | | |
| | | Type=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out Type); |
| | | |
| | | NeedCnt=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out NeedCnt); |
| | | |
| | | Condition = rawContents[3].Trim(); |
| | | Condition = contents[3]; |
| | | |
| | | MagicWeaponID=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out MagicWeaponID); |
| | | |
| | | AwardItemList = rawContents[5].Trim(); |
| | | AwardItemList = contents[5]; |
| | | |
| | | Money = rawContents[6].Trim(); |
| | | Money = contents[6]; |
| | | |
| | | AdviceIds = rawContents[7].Trim(); |
| | | AdviceIds = contents[7]; |
| | | |
| | | JumpID=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; |
| | | int.TryParse(contents[8],out JumpID); |
| | | |
| | | EffectIconKeys = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EffectIconKeys = contents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | } |
| | | catch (Exception ex) |
| | | { |