| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: Friday, June 27, 2025
|
| | | // [ Date ]: 2026年2月26日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class TreasureSetConfig : ConfigBase<int, TreasureSetConfig>
|
| | | {
|
| | | static TreasureSetConfig()
|
| | | {
|
| | | // 访问过静态构造函数
|
| | | visit = true; |
| | | }
|
| | |
|
| | | public int TreasureType;
|
| | | public int PackType;
|
| | | public int[] CheckPackList;
|
| | | public int DailyMaxCount;
|
| | | public int DailyFreeCount;
|
| | | public int[] TreasureCountList;
|
| | |
| | | public int[] CostMoneyList;
|
| | | public int EnsureCount;
|
| | | public int OnceLucky;
|
| | | public int FullLucky;
|
| | | public int LuckyGridNum;
|
| | | public string GridNumMaxLimitInfo;
|
| | | public Dictionary<int, int> GridNumMaxLimitInfo;
|
| | | public int AwardMoneyType;
|
| | | public int AwardMoneyValue;
|
| | | public int WishOpen;
|
| | | public int WishReset;
|
| | | public Dictionary<int, int> WishLibSelect;
|
| | | public Dictionary<int, int> WishLibPubFreeCnt;
|
| | | public Dictionary<int, int> WishLibCard;
|
| | | public string ProbabilityDisplay;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | |
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out TreasureType);
|
| | |
|
| | | int.TryParse(tables[1],out PackType); |
| | | if (tables[1].Contains("[")) |
| | | { |
| | | CheckPackList = JsonMapper.ToObject<int[]>(tables[1]); |
| | | } |
| | | else |
| | | { |
| | | string[] CheckPackListStringArray = tables[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | CheckPackList = new int[CheckPackListStringArray.Length]; |
| | | for (int i=0;i<CheckPackListStringArray.Length;i++) |
| | | { |
| | | int.TryParse(CheckPackListStringArray[i],out CheckPackList[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[2],out DailyMaxCount);
|
| | |
|
| | |
| | |
|
| | | int.TryParse(tables[10],out OnceLucky);
|
| | |
|
| | | int.TryParse(tables[11],out FullLucky); |
| | | int.TryParse(tables[11],out LuckyGridNum); |
| | |
|
| | | int.TryParse(tables[12],out LuckyGridNum); |
| | | GridNumMaxLimitInfo = ConfigParse.ParseIntDict(tables[12]); |
| | |
|
| | | GridNumMaxLimitInfo = 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); |
| | |
|
| | | ProbabilityDisplay = tables[16];
|
| | | int.TryParse(tables[16],out WishReset); |
| | |
|
| | | WishLibSelect = ConfigParse.ParseIntDict(tables[17]); |
| | |
|
| | | WishLibPubFreeCnt = ConfigParse.ParseIntDict(tables[18]); |
| | |
|
| | | WishLibCard = ConfigParse.ParseIntDict(tables[19]); |
| | |
|
| | | ProbabilityDisplay = tables[20];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|