ReloadModules = {}
|
|
|
|
-- 按F2重新加载的文件可配置在这里
|
|
-- 只对纯配置文件或者重新创建的类对象生效
|
|
-- 或者在下面两个函数自定义操作以达到热更目的
|
|
|
|
ReloadModules.Names = {
|
|
|
|
"game.login.CreateRoleItem",
|
|
"game.login.CreateRoleView",
|
|
"game.login.SkillShowItem",
|
|
"game.login.CareerIntroView",
|
|
"game.login.SelectRoleView",
|
|
|
|
|
|
|
|
"game.gift.GiftShowAllView",
|
|
|
|
|
|
|
|
"game.wing.WingBaseView",
|
|
"game.wing.views.WingInfoView",
|
|
"game.wing.views.WingComposeView",
|
|
"game.wing.views.WingFigureView",
|
|
|
|
"game.wing.views.WingFigureDetailView",
|
|
|
|
"game.wing.components.WingSoulTabItem",
|
|
"game.wing.components.WingTabSubItem",
|
|
"game.wing.components.WingFigureTabItem",
|
|
|
|
"game.guide.GuideShowView",
|
|
"game.sociality.OperationView",
|
|
|
|
"game.cloudShopping.CloudShoppingView",
|
|
"game.cloudShopping.CloudShoppingItem",
|
|
"game.cloudShopping.CloudShoppingRewardView",
|
|
"game.cloudShopping.CloudShopOddsItem",
|
|
"game.cloudShopping.CloudShopOddsView",
|
|
|
|
|
|
|
|
|
|
|
|
"game.common.GoodsTooltips",
|
|
"game.gift.GiftOptionalView",
|
|
"game.gift.GiftOptionalItem",
|
|
|
|
"game.newMainRole.roleAttribute.RoleAttributeView",
|
|
"game.newMainRole.NewMainRoleView",
|
|
"game.newMainRole.RoleHeadShowItem",
|
|
"game.newMainRole.SelectSysRoleHeadView",
|
|
|
|
|
|
|
|
"game.newMainRole.roleAttribute.RolePropertyItem",
|
|
-- "game.newMainRole.roleAttribute.RolePropTips",
|
|
|
|
|
|
"game.cleanHate.CleanoutHateView",
|
|
|
|
"game.mainUI.SkillTipView",
|
|
|
|
|
|
|
|
|
|
"game.beach.BeachCanvassedView",
|
|
"game.beach.BeachGiftView",
|
|
"game.beach.BeachBuyTimeView",
|
|
|
|
"game.common.LoopScrowViewMgr",
|
|
"game.rank.RankItem",
|
|
"game.rank.GuildRankItem",
|
|
|
|
"game.rank.RankView",
|
|
"game.beach.BeachAlert",
|
|
"game.beach.BeachAlertTypeFour",
|
|
"game.beach.BeachSceneView",
|
|
"game.beach.BeachCanInviteItem",
|
|
"game.beach.BeachRecordItem",
|
|
"game.beach.BeachGiftListView",
|
|
"game.beach.BeachRecordView",
|
|
"game.beach.BeachGiftListItem",
|
|
"game.beach.BeachRankItem",
|
|
"game.beach.BeachCanvassedItem",
|
|
"game.beach.BeachInviteView",
|
|
"game.beach.BeachResultView",
|
|
"game.beach.BeachRankView",
|
|
"game.beach.BeachCanvassRecordView",
|
|
|
|
|
|
"game.home.build.HomeGetGoodsTips",
|
|
"game.home.build.HomeGetGoodsItem",
|
|
"game.home.build.HomeMainTaskView",
|
|
"game.home.build.HomeBuildAllInfoView",
|
|
"game.home.build.HomeBasicInfoSubView",
|
|
"game.home.build.HomeBasicProductionSubView",
|
|
"game.home.build.HomeBasicProductionItem",
|
|
"game.home.build.HomeBasicUpgradeSubView",
|
|
"game.home.build.HomeBasicUpgradeItem",
|
|
"game.home.build.HomeLevelAdditionView",
|
|
"game.home.build.HomeLevelAdditionVerItem",
|
|
"game.home.build.HomeLevelAdditionItem",
|
|
|
|
|
|
"game.welfare.WelfareBaseView",
|
|
"game.welfare.GiftExchangeView",
|
|
"game.welfare.ResourceGiftView",
|
|
"game.welfare.DailySignView",
|
|
"game.welfare.LevelRewardView",
|
|
"game.welfare.MilitaryRewardView",
|
|
"game.welfare.NocturnalWelfareView",
|
|
"game.welfare.MondayWelfareView",
|
|
"game.welfare.MilitaryRewardItem",
|
|
"game.welfare.DailySignItem",
|
|
|
|
|
|
|
|
"game.skill.SkillView",
|
|
"game.starspirit.StarSpiritView",
|
|
"game.starspirit.StarSpiritFetterItem",
|
|
|
|
"game.starspirit.StarSpiritItem",
|
|
"game.starspirit.StarSpiritItemInEquip",
|
|
"game.starspirit.StarSpiritInfoView",
|
|
"game.starspirit.StarSpiritRewardPreviewView",
|
|
"game.starspirit.StarSpiritSkillItem",
|
|
"game.starspirit.StarSpiritSkillBagView",
|
|
"game.starspirit.StarSpiritSkillBookItem",
|
|
"game.starspirit.StarSpiritSkillLearnTip",
|
|
"game.starspirit.UniverseRoleItem",
|
|
"game.starspirit.StarSpiritBagItem",
|
|
"game.starspirit.StarSpiritStageView",
|
|
"game.starspirit.StarSpiritStarView",
|
|
"game.starspirit.StarSpiritBaseAttrView",
|
|
"game.starspirit.StarSpiritRewardProItem",
|
|
"game.starspirit.StarSpiritResoleView",
|
|
"game.starspirit.StarSpiritStrenView",
|
|
"game.starspirit.StarSpiritUpStageView",
|
|
"game.starspirit.UpStageAttrView",
|
|
"game.starspirit.EquipPosTips",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"game.chatDress.ChatDressCustomHeadView",
|
|
"game.chatDress.ChatDressCustomHeadItem",
|
|
"game.chatDress.ChatDressSubView",
|
|
"game.chatDress.ChatDressView",
|
|
"game.chatDress.ChatDressItem",
|
|
"game.chatDress.ChatDressHandbookView",
|
|
"game.chatDress.ChatDressCosumeItem",
|
|
"game.chatDress.ChatDressPropItem",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"game.gift.GiftNormalView",
|
|
|
|
|
|
"game.starspirit.StarSpiritBaseView",
|
|
"game.starspirit.StarSpiritEquipBaseView",
|
|
"game.starspirit.StarSpiritEquipViewItem",
|
|
"game.starspirit.StarSpiritBagView",
|
|
"game.starspirit.SpiritEquipItem",
|
|
"game.starspirit.StarSpiritIntensifyItem",
|
|
"game.starspirit.StarSpiritSummonView",
|
|
"game.starspirit.StarSpiritExchangeShopView",
|
|
"game.starspirit.StarSpiritExcItem",
|
|
"game.starspirit.StarSpiritResultView",
|
|
"game.starspirit.SwitchStarSpiritTip",
|
|
"game.starspirit.StarSpiritUpgradeProItem",
|
|
"game.starspirit.MicrocosmView",
|
|
"game.starspirit.StarSpiritHandbookView",
|
|
|
|
|
|
"game.look.LookRoleInfoView",
|
|
|
|
|
|
"game.daily.DailyActivityTips",
|
|
"game.daily.DailyActivityItem",
|
|
"game.daily.DailyWeekCalendarView",
|
|
"game.daily.DailyActivityView",
|
|
"game.daily.DailyEnergyItem",
|
|
"game.daily.DailyResourceRecoveryTips",
|
|
"game.daily.DailyResourceRecoveryItem",
|
|
"game.daily.DailyResourceRecoveryView",
|
|
"game.daily.DailyShapeUpgradeView",
|
|
"game.daily.TitleWeekItem",
|
|
"game.daily.DailyEnergyTips",
|
|
"game.daily.DailyView",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"game.god.GodSealItem",
|
|
"game.god.GodView",
|
|
"game.god.GodPropertyItem",
|
|
"game.god.GodPyxView",
|
|
"game.god.GodSkillTipView",
|
|
"game.god.GodItem",
|
|
"game.god.GodSkillItem",
|
|
"game.god.GodSkillToolTips",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"game.talisman.TalismanVisualView",
|
|
"game.talisman.TalismanStrengthenView",
|
|
"game.talisman.TalismanUpgradeView",
|
|
"game.talisman.TalismanBaseView",
|
|
"game.talisman.TalismanShapeSubViewItem",
|
|
"game.talisman.TalismanPropItem",
|
|
"game.talisman.TalismanStrenItem",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"game.liveSkill.LiveSkillBaseView",
|
|
"game.liveSkill.LiveSkillSubView",
|
|
"game.liveSkill.BuildPreviewItem",
|
|
|
|
|
|
|
|
"game.fish.FishView",
|
|
|
|
|
|
"game.chat.HistoryTextItem",
|
|
|
|
"game.login.loginstate.RealServerItem",
|
|
"game.login.loginstate.ServerView",
|
|
"game.login.loginstate.ServerTabItem",
|
|
"game.login.loginstate.DirectAccessView",
|
|
|
|
|
|
|
|
"game.login.CreateRoleView",
|
|
|
|
|
|
"game.operateActivity.discountShop.DiscountShopView",
|
|
|
|
|
|
"game.chat.ChatItem",
|
|
"game.chat.ChatView",
|
|
"game.chat.IndividuationView",
|
|
|
|
"game.pyx.PyxView",
|
|
"game.pyx.PyxInfoPanel",
|
|
"game.pyx.SpiritProItem",
|
|
"game.pyx.PyxBaseView",
|
|
|
|
|
|
|
|
|
|
"game.starShadow.StarShadowBaseView",
|
|
"game.starShadow.StarShadowEquipView",
|
|
"game.starShadow.StarShadowEquipItem",
|
|
"game.starShadow.StarShadowPerView",
|
|
"game.starShadow.StarShadowPreEquipItem",
|
|
"game.starShadow.StarShadowSuitProView",
|
|
"game.starShadow.StarShadowMoldSoulView",
|
|
"game.starShadow.MoldSoulTabItem",
|
|
"game.starShadow.StarShadowBagItem",
|
|
"game.starShadow.StarShadowSuitProItem",
|
|
"game.starShadow.StarShadowResolveView",
|
|
"game.starShadow.MoldEquipItem",
|
|
"game.starShadow.StarShadowStrengthView",
|
|
"game.starShadow.StarShadowComposeView",
|
|
"game.starShadow.StarShadowAllProView",
|
|
"game.starShadow.StarShadowResolveTips",
|
|
"game.starShadow.StarShadowResolveGetTips",
|
|
"game.starShadow.ComposeCostItem",
|
|
"game.starShadow.StarShadowSuitItem",
|
|
"game.starShadow.StarShadowStrengthItem",
|
|
"game.starShadow.StarShadowStrengthProItem",
|
|
"game.starShadow.StarShadowSeparateView",
|
|
"game.starShadow.EquipResolveItem",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"game.dialogue.DialogueView",
|
|
|
|
|
|
"game.common.StarShadowTipView",
|
|
"game.common.StarSoulEquipTips",
|
|
"game.common.StarSoulEquipCompareTips",
|
|
"game.common.StarSoulEquipToolTipsTemp",
|
|
|
|
|
|
"game.common.GoodsTooltips",
|
|
|
|
|
|
"config.client.ConfigUiModelParameter",
|
|
"game.operateActivity.throwEgg.ThrowEggView",
|
|
"game.operateActivity.throwEgg.ThrowEggWelfareItem",
|
|
"game.operateActivity.throwEgg.ThrowEggStoreView",
|
|
"game.operateActivity.throwEgg.ThrowEggItem",
|
|
"game.operateActivity.OperateActivityView",
|
|
|
|
|
|
|
|
|
|
"game.ZeroGiftAct.ZeroGiftView",
|
|
|
|
"game.charmRank.CrossCharmRankView",
|
|
"game.charmRank.CharmRankGetGiftView",
|
|
|
|
|
|
}
|
|
|
|
--这里添加重加载前执行的代码
|
|
function ReloadModules.ReloadPrepare()
|
|
package.loaded["config.client.ConfigUiModelParameter"] = nil
|
|
package.loaded["config.client.ConfigSceneAlphaModel"] = nil
|
|
package.loaded["config.client.ConfigSceneShadowInfo"] = nil
|
|
|
|
|
|
logWarn("ReloadBrefore")
|
|
end
|
|
|
|
--在这里添加重新加载后执行的代码
|
|
ReloadModules.ReloadPrepare()
|
|
function ReloadModules.ReloadCommand()
|
|
pcall(require, "config.client.ConfigUiModelParameter")
|
|
pcall(require, "config.client.ConfigSceneAlphaModel")
|
|
pcall(require, "config.client.ConfigSceneShadowInfo")
|
|
|
|
logWarn("ReloadSuccess")
|
|
end
|