| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2026年2月26日
|
| | | // [ Date ]: 2026年3月5日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int TreasureType;
|
| | | public int[] CheckPackList;
|
| | | public int DailyMaxCount;
|
| | | public int DailyMaxCountMoney;
|
| | | public int DailyFreeCount;
|
| | | public int[] TreasureCountList;
|
| | | public int CostItemID;
|
| | |
| | |
|
| | | int.TryParse(tables[2],out DailyMaxCount);
|
| | |
|
| | | int.TryParse(tables[3],out DailyFreeCount); |
| | | int.TryParse(tables[3],out DailyMaxCountMoney); |
| | |
|
| | | if (tables[4].Contains("[")) |
| | | int.TryParse(tables[4],out DailyFreeCount); |
| | |
|
| | | if (tables[5].Contains("[")) |
| | | { |
| | | TreasureCountList = JsonMapper.ToObject<int[]>(tables[4]); |
| | | TreasureCountList = JsonMapper.ToObject<int[]>(tables[5]); |
| | | } |
| | | else |
| | | { |
| | | string[] TreasureCountListStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] TreasureCountListStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | TreasureCountList = new int[TreasureCountListStringArray.Length]; |
| | | for (int i=0;i<TreasureCountListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[5],out CostItemID); |
| | | int.TryParse(tables[6],out CostItemID); |
| | |
|
| | | if (tables[6].Contains("[")) |
| | | if (tables[7].Contains("[")) |
| | | { |
| | | CostItemCountList = JsonMapper.ToObject<int[]>(tables[6]); |
| | | CostItemCountList = JsonMapper.ToObject<int[]>(tables[7]); |
| | | } |
| | | else |
| | | { |
| | | string[] CostItemCountListStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] CostItemCountListStringArray = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | CostItemCountList = new int[CostItemCountListStringArray.Length]; |
| | | for (int i=0;i<CostItemCountListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[7],out CostMoneyType); |
| | | int.TryParse(tables[8],out CostMoneyType); |
| | |
|
| | | if (tables[8].Contains("[")) |
| | | if (tables[9].Contains("[")) |
| | | { |
| | | CostMoneyList = JsonMapper.ToObject<int[]>(tables[8]); |
| | | CostMoneyList = JsonMapper.ToObject<int[]>(tables[9]); |
| | | } |
| | | else |
| | | { |
| | | string[] CostMoneyListStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] CostMoneyListStringArray = tables[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | CostMoneyList = new int[CostMoneyListStringArray.Length]; |
| | | for (int i=0;i<CostMoneyListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[9],out EnsureCount); |
| | | int.TryParse(tables[10],out EnsureCount); |
| | |
|
| | | int.TryParse(tables[10],out OnceLucky); |
| | | int.TryParse(tables[11],out OnceLucky); |
| | |
|
| | | int.TryParse(tables[11],out LuckyGridNum); |
| | | int.TryParse(tables[12],out LuckyGridNum); |
| | |
|
| | | GridNumMaxLimitInfo = ConfigParse.ParseIntDict(tables[12]); |
| | | GridNumMaxLimitInfo = ConfigParse.ParseIntDict(tables[13]); |
| | |
|
| | | int.TryParse(tables[13],out AwardMoneyType); |
| | | int.TryParse(tables[14],out AwardMoneyType); |
| | |
|
| | | int.TryParse(tables[14],out AwardMoneyValue); |
| | | int.TryParse(tables[15],out AwardMoneyValue); |
| | |
|
| | | int.TryParse(tables[15],out WishOpen); |
| | | int.TryParse(tables[16],out WishOpen); |
| | |
|
| | | int.TryParse(tables[16],out WishReset); |
| | | int.TryParse(tables[17],out WishReset); |
| | |
|
| | | WishLibSelect = ConfigParse.ParseIntDict(tables[17]); |
| | | WishLibSelect = ConfigParse.ParseIntDict(tables[18]); |
| | |
|
| | | WishLibPubFreeCnt = ConfigParse.ParseIntDict(tables[18]); |
| | | WishLibPubFreeCnt = ConfigParse.ParseIntDict(tables[19]); |
| | |
|
| | | WishLibCard = ConfigParse.ParseIntDict(tables[19]); |
| | | WishLibCard = ConfigParse.ParseIntDict(tables[20]); |
| | |
|
| | | ProbabilityDisplay = tables[20];
|
| | | ProbabilityDisplay = tables[21];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|