| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, December 27, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class KingTreasureItemConfig : ConfigBase { |
| | | |
| | | public int itemId { get ; private set ; }
|
| | | public int rewardLevel { get ; private set ; }
|
| | | public string description { get ; private set; } |
| | | public string qualityName { get ; private set; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return itemId.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | itemId=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class KingTreasureItemConfig : ConfigBase {
|
| | |
|
| | | public int itemId;
|
| | | public int rewardLevel;
|
| | | public string description;
|
| | | public string qualityName;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return itemId.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out itemId);
|
| | |
|
| | | rewardLevel=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out rewardLevel);
|
| | |
|
| | | description = rawContents[2].Trim();
|
| | | description = contents[2];
|
| | |
|
| | | qualityName = rawContents[3].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | qualityName = contents[3];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|