| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Monday, June 25, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Thursday, August 16, 2018
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class TreasurePrivilegeConfig : ConfigBase {
|
| | |
|
| | | public int PrivilegeID { get ; private set ; }
|
| | |
| | | public int maxValue { get ; private set ; }
|
| | | public string attr { get ; private set; }
|
| | | public string itemAward { get ; private set; }
|
| | | public int[] successList;
|
| | | public int treasureId { get ; private set ; }
|
| | | public string Icon { get ; private set; }
|
| | | public string Name { get ; private set; }
|
| | | public string targetDescription { get ; private set; }
|
| | | |
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return PrivilegeID.ToString();
|
| | | } |
| | | |
| | | public override void Parse() { |
| | | }
|
| | |
|
| | | public override void Parse() {
|
| | | try
|
| | | {
|
| | | PrivilegeID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
| | |
| | |
|
| | | itemAward = rawContents[6].Trim();
|
| | |
|
| | | Icon = rawContents[7].Trim();
|
| | | string[] successListStringArray = rawContents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | successList = new int[successListStringArray.Length]; |
| | | for (int i=0;i<successListStringArray.Length;i++) |
| | | { |
| | | int.TryParse(successListStringArray[i],out successList[i]); |
| | | }
|
| | |
|
| | | Name = rawContents[8].Trim();
|
| | | treasureId=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; |
| | |
|
| | | targetDescription = rawContents[9].Trim();
|
| | | Icon = rawContents[9].Trim();
|
| | | |
| | | Name = rawContents[10].Trim();
|
| | | |
| | | targetDescription = rawContents[11].Trim();
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|