| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, October 31, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class ItemCompoundConfig : ConfigBase { |
| | | |
| | | public int id { get ; private set ; }
|
| | | public int firstType { get ; private set ; }
|
| | | public int levelNeed { get ; private set ; }
|
| | | public int trailerLevel { get ; private set ; }
|
| | | public int secondType { get ; private set ; }
|
| | | public string secondTypeName { get ; private set; } |
| | | public int thirdType { get ; private set ; }
|
| | | public string thirdTypeName { get ; private set; } |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class ItemCompoundConfig : ConfigBase {
|
| | |
|
| | | public int id;
|
| | | public int firstType;
|
| | | public int levelNeed;
|
| | | public int trailerLevel;
|
| | | public int secondType;
|
| | | public string secondTypeName;
|
| | | public int thirdType;
|
| | | public string thirdTypeName;
|
| | | public int[] makeID;
|
| | | public int[] unfixedItemID;
|
| | | public int unfixedItemCount { get ; private set ; }
|
| | | public int unfixedItemCount;
|
| | | public int[] unfixedItemDisplay;
|
| | | public int[] itemID;
|
| | | public int[] itemCount;
|
| | | public int[] itemDisplay;
|
| | | public int money { get ; private set ; }
|
| | | public int successRate { get ; private set ; }
|
| | | public int successUpper { get ; private set ; }
|
| | | public int money;
|
| | | public int successRate;
|
| | | public int successUpper;
|
| | | public int[] successRateIncrease;
|
| | | public int addonsCountMax { get ; private set ; }
|
| | | public string helpDesc { get ; private set; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return id.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | public int addonsCountMax;
|
| | | public string helpDesc;
|
| | |
|
| | | 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);
|
| | |
|
| | | firstType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out firstType);
|
| | |
|
| | | levelNeed=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out levelNeed);
|
| | |
|
| | | trailerLevel=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out trailerLevel);
|
| | |
|
| | | secondType=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out secondType);
|
| | |
|
| | | secondTypeName = rawContents[5].Trim();
|
| | | secondTypeName = contents[5];
|
| | |
|
| | | thirdType=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | int.TryParse(contents[6],out thirdType);
|
| | |
|
| | | thirdTypeName = rawContents[7].Trim();
|
| | | thirdTypeName = contents[7];
|
| | |
|
| | | string[] makeIDStringArray = rawContents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var makeIDStringArray = contents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | makeID = new int[makeIDStringArray.Length]; |
| | | for (int i=0;i<makeIDStringArray.Length;i++) |
| | | { |
| | | int.TryParse(makeIDStringArray[i],out makeID[i]); |
| | | }
|
| | |
|
| | | string[] unfixedItemIDStringArray = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var unfixedItemIDStringArray = contents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | unfixedItemID = new int[unfixedItemIDStringArray.Length]; |
| | | for (int i=0;i<unfixedItemIDStringArray.Length;i++) |
| | | { |
| | | int.TryParse(unfixedItemIDStringArray[i],out unfixedItemID[i]); |
| | | }
|
| | |
|
| | | unfixedItemCount=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0; |
| | | int.TryParse(contents[10],out unfixedItemCount);
|
| | |
|
| | | string[] unfixedItemDisplayStringArray = rawContents[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var unfixedItemDisplayStringArray = contents[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | unfixedItemDisplay = new int[unfixedItemDisplayStringArray.Length]; |
| | | for (int i=0;i<unfixedItemDisplayStringArray.Length;i++) |
| | | { |
| | | int.TryParse(unfixedItemDisplayStringArray[i],out unfixedItemDisplay[i]); |
| | | }
|
| | |
|
| | | string[] itemIDStringArray = rawContents[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var itemIDStringArray = contents[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | itemID = new int[itemIDStringArray.Length]; |
| | | for (int i=0;i<itemIDStringArray.Length;i++) |
| | | { |
| | | int.TryParse(itemIDStringArray[i],out itemID[i]); |
| | | }
|
| | |
|
| | | string[] itemCountStringArray = rawContents[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var itemCountStringArray = contents[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | itemCount = new int[itemCountStringArray.Length]; |
| | | for (int i=0;i<itemCountStringArray.Length;i++) |
| | | { |
| | | int.TryParse(itemCountStringArray[i],out itemCount[i]); |
| | | }
|
| | |
|
| | | string[] itemDisplayStringArray = rawContents[14].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var itemDisplayStringArray = contents[14].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | itemDisplay = new int[itemDisplayStringArray.Length]; |
| | | for (int i=0;i<itemDisplayStringArray.Length;i++) |
| | | { |
| | | int.TryParse(itemDisplayStringArray[i],out itemDisplay[i]); |
| | | }
|
| | |
|
| | | money=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | int.TryParse(contents[15],out money);
|
| | |
|
| | | successRate=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; |
| | | int.TryParse(contents[16],out successRate);
|
| | |
|
| | | successUpper=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0; |
| | | int.TryParse(contents[17],out successUpper);
|
| | |
|
| | | string[] successRateIncreaseStringArray = rawContents[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var successRateIncreaseStringArray = contents[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | successRateIncrease = new int[successRateIncreaseStringArray.Length]; |
| | | for (int i=0;i<successRateIncreaseStringArray.Length;i++) |
| | | { |
| | | int.TryParse(successRateIncreaseStringArray[i],out successRateIncrease[i]); |
| | | }
|
| | |
|
| | | addonsCountMax=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0; |
| | | int.TryParse(contents[19],out addonsCountMax);
|
| | |
|
| | | helpDesc = rawContents[20].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | helpDesc = contents[20];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|