| | |
| | | isLoadFinished = false;
|
| | |
|
| | | // 加载配置文件
|
| | | int totalConfigs = 49;
|
| | | int totalConfigs = 57;
|
| | | Type[] configTypes = new Type[] {
|
| | | typeof(AppointItemConfig),
|
| | | typeof(AudioConfig),
|
| | |
| | | typeof(CTGConfig),
|
| | | typeof(CTGSelectItemConfig),
|
| | | typeof(DienstgradConfig),
|
| | | typeof(DirtyNameConfig),
|
| | | typeof(DirtyWordConfig),
|
| | | typeof(EffectConfig),
|
| | | typeof(EmojiPackConfig),
|
| | | typeof(EquipGSParamConfig),
|
| | | typeof(EquipPlaceMapConfig),
|
| | | typeof(FaceConfig),
|
| | | typeof(FamilyConfig),
|
| | | typeof(FirstGoldConfig),
|
| | |
| | | typeof(PlayerFacePicStarConfig),
|
| | | typeof(PlayerFaceStarConfig),
|
| | | typeof(PlayerLVConfig),
|
| | | typeof(PlayerPropertyConfig),
|
| | | typeof(priorbundleConfig),
|
| | | typeof(RichTextMsgReplaceConfig),
|
| | | typeof(RuleConfig),
|
| | |
| | | typeof(StoreConfig),
|
| | | typeof(SuccessConfig),
|
| | | typeof(SysInfoConfig),
|
| | | typeof(TitleStarUpConfig)
|
| | | typeof(TitleStarUpConfig),
|
| | | typeof(TreasureCntAwardConfig),
|
| | | typeof(TreasureItemLibConfig),
|
| | | typeof(TreasureSetConfig),
|
| | | typeof(XBGetItemConfig)
|
| | | };
|
| | |
|
| | | // 逐个加载配置并更新进度
|
| | |
| | | ClearConfigDictionary<CTGSelectItemConfig>();
|
| | | // 清空 DienstgradConfig 字典
|
| | | ClearConfigDictionary<DienstgradConfig>();
|
| | | // 清空 DirtyNameConfig 字典
|
| | | ClearConfigDictionary<DirtyNameConfig>();
|
| | | // 清空 DirtyWordConfig 字典
|
| | | ClearConfigDictionary<DirtyWordConfig>();
|
| | | // 清空 EffectConfig 字典
|
| | | ClearConfigDictionary<EffectConfig>();
|
| | | // 清空 EmojiPackConfig 字典
|
| | | ClearConfigDictionary<EmojiPackConfig>();
|
| | | // 清空 EquipGSParamConfig 字典
|
| | | ClearConfigDictionary<EquipGSParamConfig>();
|
| | | // 清空 EquipPlaceMapConfig 字典
|
| | | ClearConfigDictionary<EquipPlaceMapConfig>();
|
| | | // 清空 FaceConfig 字典
|
| | | ClearConfigDictionary<FaceConfig>();
|
| | | // 清空 FamilyConfig 字典
|
| | |
| | | ClearConfigDictionary<PlayerFaceStarConfig>();
|
| | | // 清空 PlayerLVConfig 字典
|
| | | ClearConfigDictionary<PlayerLVConfig>();
|
| | | // 清空 PlayerPropertyConfig 字典
|
| | | ClearConfigDictionary<PlayerPropertyConfig>();
|
| | | // 清空 priorbundleConfig 字典
|
| | | ClearConfigDictionary<priorbundleConfig>();
|
| | | // 清空 RichTextMsgReplaceConfig 字典
|
| | |
| | | ClearConfigDictionary<SysInfoConfig>();
|
| | | // 清空 TitleStarUpConfig 字典
|
| | | ClearConfigDictionary<TitleStarUpConfig>();
|
| | | // 清空 TreasureCntAwardConfig 字典
|
| | | ClearConfigDictionary<TreasureCntAwardConfig>();
|
| | | // 清空 TreasureItemLibConfig 字典
|
| | | ClearConfigDictionary<TreasureItemLibConfig>();
|
| | | // 清空 TreasureSetConfig 字典
|
| | | ClearConfigDictionary<TreasureSetConfig>();
|
| | | // 清空 XBGetItemConfig 字典
|
| | | ClearConfigDictionary<XBGetItemConfig>();
|
| | | }
|
| | | }
|
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: Tuesday, June 17, 2025
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class DirtyNameConfig : ConfigBase<int, DirtyNameConfig>
|
| | | {
|
| | |
|
| | | public int id;
|
| | | public string word;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out id); |
| | |
|
| | | word = tables[1];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6da75bc0cae8a5448968ebb2a41cc342 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年6月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class EquipGSParamConfig : ConfigBase<int, EquipGSParamConfig>
|
| | | {
|
| | |
|
| | | public int ID;
|
| | | public int EquipClass;
|
| | | public int EquipColor;
|
| | | public int IsSuit;
|
| | | public int Star;
|
| | | public int BaseEquipMaxHPAddPerC;
|
| | | public int BaseEquipAtkAddPerC;
|
| | | public int SuperHitC;
|
| | | public int SuperHitPerC;
|
| | | public int LuckyHitRateC;
|
| | | public int LuckyHitRateReduceC;
|
| | | public int LuckPerC;
|
| | | public int PerLVAtkC;
|
| | | public int PerLVMaxHPC;
|
| | | public int DropMoneyPerC;
|
| | | public int SuperHitReduceC;
|
| | | public int SuperHitRateReduceC;
|
| | | public int HitC;
|
| | | public int MissC;
|
| | | public int PetDamPerC;
|
| | | public int MaxHPPerC;
|
| | | public int AtkPerC;
|
| | | public int SkillAtkRateC;
|
| | | public int SkillAtkRateReduceC;
|
| | | public int SkillAddPerAC;
|
| | | public int SkillAddPerBC;
|
| | | public int SkillAddPerCC;
|
| | | public int SkillAddPerDC;
|
| | | public int SkillAddPerEC;
|
| | | public int SkillAddPerFC;
|
| | | public int SkillAddPerGC;
|
| | | public int SkillReducePerAC;
|
| | | public int SkillReducePerBC;
|
| | | public int SkillReducePerCC;
|
| | | public int SkillReducePerDC;
|
| | | public int SkillReducePerEC;
|
| | | public int SkillReducePerFC;
|
| | | public int SkillReducePerGC;
|
| | | public int ReduceSkillCDPerC;
|
| | | public int LuckyHitPerC;
|
| | | public int FaintDefRateC;
|
| | | public int SuperHitRateC;
|
| | | public int IgnoreDefRateC;
|
| | | public int IgnoreDefRateReduceC;
|
| | | public int ProDefPerC;
|
| | | public int FinalHurtPerC;
|
| | | public int FinalHurtReducePerC;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out ID); |
| | |
|
| | | int.TryParse(tables[1],out EquipClass); |
| | |
|
| | | int.TryParse(tables[2],out EquipColor); |
| | |
|
| | | int.TryParse(tables[3],out IsSuit); |
| | |
|
| | | int.TryParse(tables[4],out Star); |
| | |
|
| | | int.TryParse(tables[5],out BaseEquipMaxHPAddPerC); |
| | |
|
| | | int.TryParse(tables[6],out BaseEquipAtkAddPerC); |
| | |
|
| | | int.TryParse(tables[7],out SuperHitC); |
| | |
|
| | | int.TryParse(tables[8],out SuperHitPerC); |
| | |
|
| | | int.TryParse(tables[9],out LuckyHitRateC); |
| | |
|
| | | int.TryParse(tables[10],out LuckyHitRateReduceC); |
| | |
|
| | | int.TryParse(tables[11],out LuckPerC); |
| | |
|
| | | int.TryParse(tables[12],out PerLVAtkC); |
| | |
|
| | | int.TryParse(tables[13],out PerLVMaxHPC); |
| | |
|
| | | int.TryParse(tables[14],out DropMoneyPerC); |
| | |
|
| | | int.TryParse(tables[15],out SuperHitReduceC); |
| | |
|
| | | int.TryParse(tables[16],out SuperHitRateReduceC); |
| | |
|
| | | int.TryParse(tables[17],out HitC); |
| | |
|
| | | int.TryParse(tables[18],out MissC); |
| | |
|
| | | int.TryParse(tables[19],out PetDamPerC); |
| | |
|
| | | int.TryParse(tables[20],out MaxHPPerC); |
| | |
|
| | | int.TryParse(tables[21],out AtkPerC); |
| | |
|
| | | int.TryParse(tables[22],out SkillAtkRateC); |
| | |
|
| | | int.TryParse(tables[23],out SkillAtkRateReduceC); |
| | |
|
| | | int.TryParse(tables[24],out SkillAddPerAC); |
| | |
|
| | | int.TryParse(tables[25],out SkillAddPerBC); |
| | |
|
| | | int.TryParse(tables[26],out SkillAddPerCC); |
| | |
|
| | | int.TryParse(tables[27],out SkillAddPerDC); |
| | |
|
| | | int.TryParse(tables[28],out SkillAddPerEC); |
| | |
|
| | | int.TryParse(tables[29],out SkillAddPerFC); |
| | |
|
| | | int.TryParse(tables[30],out SkillAddPerGC); |
| | |
|
| | | int.TryParse(tables[31],out SkillReducePerAC); |
| | |
|
| | | int.TryParse(tables[32],out SkillReducePerBC); |
| | |
|
| | | int.TryParse(tables[33],out SkillReducePerCC); |
| | |
|
| | | int.TryParse(tables[34],out SkillReducePerDC); |
| | |
|
| | | int.TryParse(tables[35],out SkillReducePerEC); |
| | |
|
| | | int.TryParse(tables[36],out SkillReducePerFC); |
| | |
|
| | | int.TryParse(tables[37],out SkillReducePerGC); |
| | |
|
| | | int.TryParse(tables[38],out ReduceSkillCDPerC); |
| | |
|
| | | int.TryParse(tables[39],out LuckyHitPerC); |
| | |
|
| | | int.TryParse(tables[40],out FaintDefRateC); |
| | |
|
| | | int.TryParse(tables[41],out SuperHitRateC); |
| | |
|
| | | int.TryParse(tables[42],out IgnoreDefRateC); |
| | |
|
| | | int.TryParse(tables[43],out IgnoreDefRateReduceC); |
| | |
|
| | | int.TryParse(tables[44],out ProDefPerC); |
| | |
|
| | | int.TryParse(tables[45],out FinalHurtPerC); |
| | |
|
| | | int.TryParse(tables[46],out FinalHurtReducePerC); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f510c442e570ac446af81fa008cc0367 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年6月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class EquipPlaceMapConfig : ConfigBase<int, EquipPlaceMapConfig>
|
| | | {
|
| | |
|
| | | public int PackIndex;
|
| | | public int LV;
|
| | | public int EquipPlace;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out PackIndex); |
| | |
|
| | | int.TryParse(tables[1],out LV); |
| | |
|
| | | int.TryParse(tables[2],out EquipPlace); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 695a587191bcf194ab9c1d32d07102e2 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年6月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class PlayerPropertyConfig : ConfigBase<int, PlayerPropertyConfig>
|
| | | {
|
| | |
|
| | | public int ID;
|
| | | public string Name;
|
| | | public string ShowName;
|
| | | public int ISPercentage;
|
| | | public int type;
|
| | | public int decimalCount;
|
| | | public int showType;
|
| | | public int showSequence;
|
| | | public string desc;
|
| | | public string Parameter;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out ID); |
| | |
|
| | | Name = tables[1];
|
| | |
|
| | | ShowName = tables[2];
|
| | |
|
| | | int.TryParse(tables[3],out ISPercentage); |
| | |
|
| | | int.TryParse(tables[4],out type); |
| | |
|
| | | int.TryParse(tables[5],out decimalCount); |
| | |
|
| | | int.TryParse(tables[6],out showType); |
| | |
|
| | | int.TryParse(tables[7],out showSequence); |
| | |
|
| | | desc = tables[8];
|
| | |
|
| | | Parameter = tables[9];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 453d28b14c276df41bd363b2054a0477 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年6月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class TreasureCntAwardConfig : ConfigBase<int, TreasureCntAwardConfig>
|
| | | {
|
| | |
|
| | | public int ID;
|
| | | public int TreasureType;
|
| | | public int NeedTreasureCnt;
|
| | | public int AwardIndex;
|
| | | public int[][] AwardItemList;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out ID); |
| | |
|
| | | int.TryParse(tables[1],out TreasureType); |
| | |
|
| | | int.TryParse(tables[2],out NeedTreasureCnt); |
| | |
|
| | | int.TryParse(tables[3],out AwardIndex); |
| | |
|
| | | AwardItemList = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]")); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 571161a2e6c006a4390fbde04e5986cf |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年6月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class TreasureItemLibConfig : ConfigBase<int, TreasureItemLibConfig>
|
| | | {
|
| | |
|
| | | public int LibID;
|
| | | public int ItemID;
|
| | | public int ItemCount;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out LibID); |
| | |
|
| | | int.TryParse(tables[1],out ItemID); |
| | |
|
| | | int.TryParse(tables[2],out ItemCount); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 90292bb76558b9a4e87e7ef216522f46 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年6月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class TreasureSetConfig : ConfigBase<int, TreasureSetConfig>
|
| | | {
|
| | |
|
| | | public int TreasureType;
|
| | | public int PackType;
|
| | | public int DailyMaxCount;
|
| | | public int DailyFreeCount;
|
| | | public int[] TreasureCountList;
|
| | | public int CostItemID;
|
| | | public int[] CostItemCountList;
|
| | | public int CostMoneyType;
|
| | | public int[] CostMoneyList;
|
| | | public int EnsureCount;
|
| | | public int OnceLucky;
|
| | | public int FullLucky;
|
| | | public int LuckyGridNum;
|
| | | public string GridNumMaxLimitInfo;
|
| | | public int AwardMoneyType;
|
| | | public int AwardMoneyValue;
|
| | | public string ProbabilityDisplay;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out TreasureType); |
| | |
|
| | | int.TryParse(tables[1],out PackType); |
| | |
|
| | | int.TryParse(tables[2],out DailyMaxCount); |
| | |
|
| | | int.TryParse(tables[3],out DailyFreeCount); |
| | |
|
| | | if (tables[4].Contains("[")) |
| | | { |
| | | TreasureCountList = JsonMapper.ToObject<int[]>(tables[4]); |
| | | } |
| | | else |
| | | { |
| | | string[] TreasureCountListStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | TreasureCountList = new int[TreasureCountListStringArray.Length]; |
| | | for (int i=0;i<TreasureCountListStringArray.Length;i++) |
| | | { |
| | | int.TryParse(TreasureCountListStringArray[i],out TreasureCountList[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[5],out CostItemID); |
| | |
|
| | | if (tables[6].Contains("[")) |
| | | { |
| | | CostItemCountList = JsonMapper.ToObject<int[]>(tables[6]); |
| | | } |
| | | else |
| | | { |
| | | string[] CostItemCountListStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | CostItemCountList = new int[CostItemCountListStringArray.Length]; |
| | | for (int i=0;i<CostItemCountListStringArray.Length;i++) |
| | | { |
| | | int.TryParse(CostItemCountListStringArray[i],out CostItemCountList[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[7],out CostMoneyType); |
| | |
|
| | | if (tables[8].Contains("[")) |
| | | { |
| | | CostMoneyList = JsonMapper.ToObject<int[]>(tables[8]); |
| | | } |
| | | else |
| | | { |
| | | string[] CostMoneyListStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | CostMoneyList = new int[CostMoneyListStringArray.Length]; |
| | | for (int i=0;i<CostMoneyListStringArray.Length;i++) |
| | | { |
| | | int.TryParse(CostMoneyListStringArray[i],out CostMoneyList[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[9],out EnsureCount); |
| | |
|
| | | int.TryParse(tables[10],out OnceLucky); |
| | |
|
| | | int.TryParse(tables[11],out FullLucky); |
| | |
|
| | | int.TryParse(tables[12],out LuckyGridNum); |
| | |
|
| | | GridNumMaxLimitInfo = tables[13];
|
| | |
|
| | | int.TryParse(tables[14],out AwardMoneyType); |
| | |
|
| | | int.TryParse(tables[15],out AwardMoneyValue); |
| | |
|
| | | ProbabilityDisplay = tables[16];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6b9694e1e5e82f14b803352d470ba768 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年6月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Threading;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class XBGetItemConfig : ConfigBase<int, XBGetItemConfig>
|
| | | {
|
| | |
|
| | | public int ID;
|
| | | public int TreasureType;
|
| | | public int MinLV;
|
| | | public string GridItemInfo;
|
| | | public string GridLibInfo;
|
| | | public string JobItemList;
|
| | | public int[][] GridItemRateList1;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | | int key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out ID); |
| | |
|
| | | int.TryParse(tables[1],out TreasureType); |
| | |
|
| | | int.TryParse(tables[2],out MinLV); |
| | |
|
| | | GridItemInfo = tables[3];
|
| | |
|
| | | GridLibInfo = tables[4];
|
| | |
|
| | | JobItemList = tables[5];
|
| | |
|
| | | GridItemRateList1 = JsonMapper.ToObject<int[][]>(tables[6].Replace("(", "[").Replace(")", "]")); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a26f83764daa3744d8fac6faefefca9c |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |