| | |
| | |
|
| | | // 加载配置文件
|
| | | HashSet<Type> configTypes = new HashSet<Type>() {
|
| | | typeof(ActBillboardAwardConfig),
|
| | | typeof(ActHeroAppearArtConfig),
|
| | | typeof(ActHeroAppearConfig),
|
| | | typeof(ActHeroAppearSkinArtConfig),
|
| | | typeof(ActHeroAppearStarConfig),
|
| | | typeof(ActHeroReturnArtConfig),
|
| | | typeof(ActHeroReturnSkinArtConfig),
|
| | | typeof(ActLunhuidianTypeConfig),
|
| | | typeof(ActSignAwardConfig),
|
| | | typeof(ADAwardConfig),
|
| | | typeof(BattleMapConfig),
|
| | | typeof(BeautyConfig),
|
| | |
| | | typeof(DungeonOpenTimeConfig),
|
| | | typeof(FaceConfig),
|
| | | typeof(FamilyDonateConfig),
|
| | | typeof(FBDJGEffectConfig),
|
| | | typeof(FBDJGLevelConfig),
|
| | | typeof(FBDJGQuickConfig),
|
| | | typeof(FightPowerRatioConfig),
|
| | | typeof(FirstChargeConfig),
|
| | | typeof(GoldRushCampConfig),
|
| | |
| | | typeof(HeroFatesQualityLVConfig),
|
| | | typeof(HeroLineupHaloConfig),
|
| | | typeof(HeroQualityLVConfig),
|
| | | typeof(HeroSkinAttrConfig),
|
| | | typeof(HorseClassConfig),
|
| | | typeof(HorseSkinConfig),
|
| | | typeof(ItemCompoundConfig),
|
| | |
| | | typeof(LLMJConfig),
|
| | | typeof(MainChapterConfig),
|
| | | typeof(MainLevelConfig),
|
| | | typeof(MGGanwuLVConfig),
|
| | | typeof(MGGuayuQualityConfig),
|
| | | typeof(MGGuayuTypeConfig),
|
| | | typeof(MGLingyingQualityConfig),
|
| | | typeof(ModelConfig),
|
| | | typeof(NPCConfig),
|
| | | typeof(NPCExConfig),
|
| | |
| | | typeof(OrderInfoConfig),
|
| | | typeof(PlayerAttrConfig),
|
| | | typeof(PlayerFaceConfig),
|
| | | typeof(PopWinOrderConfig),
|
| | | typeof(PresetUnlockConfig),
|
| | | typeof(PriorBundleConfig),
|
| | | typeof(RandomNameConfig),
|
| | | typeof(SignInConfig),
|
| | | typeof(SkillSkinConfig),
|
| | | typeof(StoreConfig),
|
| | | typeof(SuccessConfig),
|
| | | typeof(SysInfoConfig),
|
| | | typeof(TianziConfig),
|
| | | typeof(TimingGiftConfig),
|
| | | typeof(TimingGiftTypeConfig),
|
| | | typeof(TitleConfig),
|
| | | typeof(TitleStarUpConfig),
|
| | | typeof(TravelEventConfig),
|
| | |
| | | LoadConfigByType(configType);
|
| | | sw.Stop();
|
| | | #if UNITY_EDITOR
|
| | | if (sw.ElapsedMilliseconds >= 100)
|
| | | if (sw.ElapsedMilliseconds >= 500)
|
| | | {
|
| | | Debug.LogError($"加载配置 {configType.Name} 耗时较长: {sw.ElapsedMilliseconds} ms");
|
| | | }
|
| | |
| | |
|
| | | public override void Release()
|
| | | {
|
| | | // 清空 ActBillboardAwardConfig 字典
|
| | | ClearConfigDictionary<ActBillboardAwardConfig>();
|
| | | // 清空 ActHeroAppearArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearArtConfig>();
|
| | | // 清空 ActHeroAppearConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearConfig>();
|
| | | // 清空 ActHeroAppearSkinArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearSkinArtConfig>();
|
| | | // 清空 ActHeroAppearStarConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearStarConfig>();
|
| | | // 清空 ActHeroReturnArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroReturnArtConfig>();
|
| | | // 清空 ActHeroReturnSkinArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroReturnSkinArtConfig>();
|
| | | // 清空 ActLunhuidianTypeConfig 字典
|
| | | ClearConfigDictionary<ActLunhuidianTypeConfig>();
|
| | | // 清空 ActSignAwardConfig 字典
|
| | | ClearConfigDictionary<ActSignAwardConfig>();
|
| | | // 清空 ADAwardConfig 字典
|
| | | ClearConfigDictionary<ADAwardConfig>();
|
| | | // 清空 BattleMapConfig 字典
|
| | |
| | | ClearConfigDictionary<FaceConfig>();
|
| | | // 清空 FamilyDonateConfig 字典
|
| | | ClearConfigDictionary<FamilyDonateConfig>();
|
| | | // 清空 FBDJGEffectConfig 字典
|
| | | ClearConfigDictionary<FBDJGEffectConfig>();
|
| | | // 清空 FBDJGLevelConfig 字典
|
| | | ClearConfigDictionary<FBDJGLevelConfig>();
|
| | | // 清空 FBDJGQuickConfig 字典
|
| | | ClearConfigDictionary<FBDJGQuickConfig>();
|
| | | // 清空 FightPowerRatioConfig 字典
|
| | | ClearConfigDictionary<FightPowerRatioConfig>();
|
| | | // 清空 FirstChargeConfig 字典
|
| | |
| | | ClearConfigDictionary<HeroLineupHaloConfig>();
|
| | | // 清空 HeroQualityLVConfig 字典
|
| | | ClearConfigDictionary<HeroQualityLVConfig>();
|
| | | // 清空 HeroSkinAttrConfig 字典
|
| | | ClearConfigDictionary<HeroSkinAttrConfig>();
|
| | | // 清空 HorseClassConfig 字典
|
| | | ClearConfigDictionary<HorseClassConfig>();
|
| | | // 清空 HorseSkinConfig 字典
|
| | |
| | | ClearConfigDictionary<MainChapterConfig>();
|
| | | // 清空 MainLevelConfig 字典
|
| | | ClearConfigDictionary<MainLevelConfig>();
|
| | | // 清空 MGGanwuLVConfig 字典
|
| | | ClearConfigDictionary<MGGanwuLVConfig>();
|
| | | // 清空 MGGuayuQualityConfig 字典
|
| | | ClearConfigDictionary<MGGuayuQualityConfig>();
|
| | | // 清空 MGGuayuTypeConfig 字典
|
| | | ClearConfigDictionary<MGGuayuTypeConfig>();
|
| | | // 清空 MGLingyingQualityConfig 字典
|
| | | ClearConfigDictionary<MGLingyingQualityConfig>();
|
| | | // 清空 ModelConfig 字典
|
| | | ClearConfigDictionary<ModelConfig>();
|
| | | // 清空 NPCConfig 字典
|
| | |
| | | ClearConfigDictionary<PlayerAttrConfig>();
|
| | | // 清空 PlayerFaceConfig 字典
|
| | | ClearConfigDictionary<PlayerFaceConfig>();
|
| | | // 清空 PopWinOrderConfig 字典
|
| | | ClearConfigDictionary<PopWinOrderConfig>();
|
| | | // 清空 PresetUnlockConfig 字典
|
| | | ClearConfigDictionary<PresetUnlockConfig>();
|
| | | // 清空 PriorBundleConfig 字典
|
| | | ClearConfigDictionary<PriorBundleConfig>();
|
| | | // 清空 RandomNameConfig 字典
|
| | | ClearConfigDictionary<RandomNameConfig>();
|
| | | // 清空 SignInConfig 字典
|
| | | ClearConfigDictionary<SignInConfig>();
|
| | | // 清空 SkillSkinConfig 字典
|
| | | ClearConfigDictionary<SkillSkinConfig>();
|
| | | // 清空 StoreConfig 字典
|
| | | ClearConfigDictionary<StoreConfig>();
|
| | | // 清空 SuccessConfig 字典
|
| | |
| | | ClearConfigDictionary<SysInfoConfig>();
|
| | | // 清空 TianziConfig 字典
|
| | | ClearConfigDictionary<TianziConfig>();
|
| | | // 清空 TimingGiftConfig 字典
|
| | | ClearConfigDictionary<TimingGiftConfig>();
|
| | | // 清空 TimingGiftTypeConfig 字典
|
| | | ClearConfigDictionary<TimingGiftTypeConfig>();
|
| | | // 清空 TitleConfig 字典
|
| | | ClearConfigDictionary<TitleConfig>();
|
| | | // 清空 TitleStarUpConfig 字典
|
| | |
| | |
|
| | | sw.Stop();
|
| | |
|
| | | if (sw.ElapsedMilliseconds >= 100)
|
| | | if (sw.ElapsedMilliseconds >= 500)
|
| | | {
|
| | | Debug.LogError($"[自检] 加载配置 {configType.Name} 耗时较长: {sw.ElapsedMilliseconds} ms");
|
| | | }
|