| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月7日
|
| | | // [ Date ]: Thursday, August 28, 2025
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | }
|
| | |
|
| | | public int Quality;
|
| | | public int[] UPCostItem;
|
| | | public int InitStarUpper;
|
| | | public int InitAddPer;
|
| | | public int LVAddPer;
|
| | |
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out Quality);
|
| | |
|
| | | if (tables[1].Contains("[")) |
| | | int.TryParse(tables[1],out InitStarUpper); |
| | |
|
| | | int.TryParse(tables[2],out InitAddPer); |
| | |
|
| | | int.TryParse(tables[3],out LVAddPer); |
| | |
|
| | | int.TryParse(tables[4],out BreakLVAddPer); |
| | |
|
| | | int.TryParse(tables[5],out StarAddPer); |
| | |
|
| | | if (tables[6].Contains("[")) |
| | | { |
| | | UPCostItem = JsonMapper.ToObject<int[]>(tables[1]); |
| | | BookActAwardMoney = JsonMapper.ToObject<int[]>(tables[6]); |
| | | } |
| | | else |
| | | { |
| | | string[] UPCostItemStringArray = tables[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | UPCostItem = new int[UPCostItemStringArray.Length]; |
| | | for (int i=0;i<UPCostItemStringArray.Length;i++) |
| | | { |
| | | int.TryParse(UPCostItemStringArray[i],out UPCostItem[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[2],out InitStarUpper); |
| | |
|
| | | int.TryParse(tables[3],out InitAddPer); |
| | |
|
| | | int.TryParse(tables[4],out LVAddPer); |
| | |
|
| | | int.TryParse(tables[5],out BreakLVAddPer); |
| | |
|
| | | int.TryParse(tables[6],out StarAddPer); |
| | |
|
| | | if (tables[7].Contains("[")) |
| | | { |
| | | BookActAwardMoney = JsonMapper.ToObject<int[]>(tables[7]); |
| | | } |
| | | else |
| | | { |
| | | string[] BookActAwardMoneyStringArray = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] BookActAwardMoneyStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | BookActAwardMoney = new int[BookActAwardMoneyStringArray.Length]; |
| | | for (int i=0;i<BookActAwardMoneyStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[8],out BookInitAddPer); |
| | | int.TryParse(tables[7],out BookInitAddPer); |
| | |
|
| | | int.TryParse(tables[9],out BookStarAddPer); |
| | | int.TryParse(tables[8],out BookStarAddPer); |
| | |
|
| | | int.TryParse(tables[10],out BookBreakLVAddPer); |
| | | int.TryParse(tables[9],out BookBreakLVAddPer); |
| | |
|
| | | DismissReturnItems = JsonMapper.ToObject<int[][]>(tables[11].Replace("(", "[").Replace(")", "]")); |
| | | DismissReturnItems = JsonMapper.ToObject<int[][]>(tables[10].Replace("(", "[").Replace(")", "]")); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|