Files
Main/Assets/GameAssets/Resources/Lua/Global/GameCenter.lua
2025-01-25 04:38:09 +08:00

1384 lines
50 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

------------------------------------------------
-- 作者gzg
-- 日期2019-03-25
-- 文件GameCenter.lua
-- 模块GameCenter
-- 描述:游戏逻辑的中心,保存几乎所有的逻辑信息
------------------------------------------------
-- //模块引用
local CSGameCenter = CS.Thousandto.Code.Center.GameCenter
-- //模块定义
local GameCenter = {
IsCoreInit = false,
IsLogicInit = false,
DeltaTime = 0,
FrameCount = 0,
}
-- 核心系统初始化
function GameCenter:CoreInitialize()
if self.IsCoreInit then
return
end
-- 网络管理类
self.Network = require("Network.Network");
-- UI管理类
self.UIFormManager = require("UI.Base.UIFormManager");
-- 地图逻辑管理类
self.MapLogicSystem = require("Logic.MapLogicEx.MapLogicExSystem");
--游戏消息管理类
self.GameMessager = require("Logic.GameMessager.GameMessager");
--图片同步系统
self.TexHttpSyncSystem = require "Logic.TexHttpSync.TexHttpSyncSystem";
---定义从CS引用来的核心系统
self.GameSceneSystem = CSGameCenter.GameSceneSystem
self.MapLogicSwitch = CSGameCenter.MapLogicSwitch
self.SDKSystem = CSGameCenter.SDKSystem;
self.Network.Init()
self.GameMessager.Init()
self.IsCoreInit = true
self.TexHttpSyncSystem:Initialize()
end
-- 核心系统卸载
function GameCenter:CoreUninitialize()
if not self.IsCoreInit then
return
end
self.Network = nil
Utils.RemoveRequiredByName("Network.Network")
self.UIFormManager = nil
Utils.RemoveRequiredByName("UI.Base.UIFormManager")
self.MapLogicSystem = nil
Utils.RemoveRequiredByName("Logic.MapLogicEx.MapLogicExSystem")
self.TexHttpSyncSystem:UnInitialize()
self.TexHttpSyncSystem = nil
Utils.RemoveRequiredByName("Logic.TexHttpSync.TexHttpSyncSystem")
self.GameSceneSystem = nil
self.MapLogicSwitch = nil
self.SDKSystem = nil
self.IsCoreInit = false
end
-- 逻辑系统初始化
function GameCenter:LogicInitialize(clearLoginData)
if self.IsLogicInit then
return
end
-- local _t1 = os.clock();
---定义从CS引用来的逻辑系统
self.RedPointSystem = CSGameCenter.RedPointSystem
self.ItemContianerSystem = CSGameCenter.ItemContianerSystem
self.EquipmentSystem = CSGameCenter.EquipmentSystem
self.GameSetting = CSGameCenter.GameSetting;
self.WorldMapInfoManager = CSGameCenter.WorldMapInfoManager
self.MsgPromptSystem = CSGameCenter.MsgPromptSystem
self.PathFinderSystem = CSGameCenter.PathFinderSystem
self.MainFunctionSystem = CSGameCenter.MainFunctionSystem
self.GuideSystem = CSGameCenter.GuideSystem
self.RechargeSystem = CSGameCenter.RechargeSystem
self.MainCustomBtnSystem = CSGameCenter.MainCustomBtnSystem
self.HeartSystem = CSGameCenter.HeartSystem
self.PathSearchSystem = CSGameCenter.PathSearchSystem
self.GuildRepertorySystem = CSGameCenter.GuildRepertorySystem
self.TimerEventSystem = CSGameCenter.TimerEventSystem
self.LanguageConvertSystem = CSGameCenter.LanguageConvertSystem
self.VariableSystem = CS.Thousandto.Code.Logic.VariableSystem;
self.BuffSystem = CSGameCenter.BuffSystem;
self.ImmortalResSystem = CSGameCenter.ImmortalResSystem
self.BlockingUpPromptSystem = CSGameCenter.BlockingUpPromptSystem
self.AuctionHouseSystem = CSGameCenter.AuctionHouseSystem
self.UpdateSystem = CSGameCenter.UpdateSystem;
self.ReconnectSystem = CSGameCenter.ReconnectSystem;
self.CacheSceneSystem = CSGameCenter.CacheSceneSystem
self.BISystem = CSGameCenter.BISystem
self.ChatSystem = CSGameCenter.ChatSystem
self.ChatPrivateSystem = CSGameCenter.ChatPrivateSystem
self.FormStateSystem = CSGameCenter.FormStateSystem
self.TextureManager = CSGameCenter.TextureManager
self.GatherTishiSystem = CSGameCenter.GatherTishiSystem
self.DropAscriptionSystem = CSGameCenter.DropAscriptionSystem
self.SkillSelectFiledManager = CSGameCenter.SkillSelectFiledManager
self.InputSystem = CSGameCenter.InputSystem
self.SkillVisualManager = CSGameCenter.SkillVisualManager
self.SceneRestoreSystem = CSGameCenter.SceneRestoreSystem
self.ChatMonitorSystem = CSGameCenter.ChatMonitorSystem
self.MaterialManager = CSGameCenter.MaterialManager
-- local _t2 = os.clock();
if clearLoginData then
Debug.LogError("清理登录数据之后,重新加载所有的数据");
--玩家角色列表
self.PlayerRoleListSystem = require("Logic.PlayerRoleList.PlayerRoleListSystem");
self.LoginSystem = require("Logic.Login.LoginSystem");
self.ServerListSystem = require("Logic.ServerList.ServerListSystem");
--充值系统
self.PaySystem = require("Logic.PaySystem.PaySystem")
end
self.LuaMainFunctionSystem = require("Logic.LuaMainFunction.LuaMainFunctionSystem")
self.OfflineOnHookSystem = require("Logic.OfflineOnHook.OfflineOnHookSystem")
self.LuaVariableSystem = require("Logic.LuaVariable.LuaVariableSystem")
self.NatureSystem = require("Logic.Nature.NatureSystem")
self.CopyMapSystem = require("Logic.CopyMapSystem.CopyMapSystem")
self.DailyActivitySystem = require("Logic.DailyActivity.DailyActivitySystem")
self.LianQiForgeSystem = require("Logic.LianQiForge.LianQiForgeSystem")
self.LianQiGemSystem = require("Logic.LianQiGem.LianQiGemSystem")
self.RankSystem = require("Logic.Rank.RankSystem")
self.GodBookSystem = require("Logic.GodBook.GodBookSystem")
self.ItemTipsMgr = require("Logic.Item.ItemTipsMgr")
self.NewItemContianerSystem = require("Logic.Item.NewItemContianerSystem")
-- 识海系统
self.PlayerShiHaiSystem = require("Logic.PlayerShiHai.PlayerShiHaiSystem")
self.FactionSkillSystem = require("Logic.FactionSkill.FactionSkillSystem")
-- 福地系统
self.FuDiSystem = require("Logic.FuDi.FuDiSystem")
-- BOSS系统
self.BossSystem = require("Logic.Boss.BossSystem")
-- BOSS系统
self.MountBossSystem = require("Logic.Boss.MountBossSystem")
self.SlayerBossSystem = require("Logic.Boss.SlayerBossSystem")
-- 反馈系统
self.FeedBackSystem = require("Logic.FeedBack.FeedBackSystem");
-- 成就系统
self.AchievementSystem = require("Logic.Achievement.AchievementSystem")
-- 婚姻系统
self.MarriageSystem = require("Logic.Marriage.MarriageSystem")
-- 首席竞技场系统
self.ArenaShouXiSystem = require("Logic.ArenaShouXi.ArenaShouXiSystem")
-- 前往BOSS所在地system
self.BossInfoTipsSystem = require("Logic.BossInfoTips.BossInfoTipsSystem")
-- 邮件系统
self.MailSystem = require("Logic.Mail.MailSystem")
-- 套装系统
self.EquipmentSuitSystem = require("Logic.EquipmentSuit.EquipmentSuitSystem")
-- 称号xitong
self.RoleTitleSystem = require("Logic.RoleTitle.RoleTitleSystem")
-- 宠物系统
self.PetSystem = require("Logic.Pet.PetSystem")
-- 福利系统
self.WelfareSystem = require("Logic.Welfare.WelfareSystem")
-- 商城系统
self.ShopSystem = require("Logic.Shop.ShopManager")
-- 开服狂欢
self.ServeCrazySystem = require("Logic.ServeCrazy.ServeCrazySystem")
-- 成长之路
self.GrowthWaySystem = require("Logic.GrowthWay.GrowthWaySystem")
-- 开服活动
self.ServerActiveSystem = require("Logic.ServerActive.ServerActiveSystem")
-- 每日累充
self.DailyRechargeSystem = require("Logic.DailyRecharge.DailyRechargeSystem")
-- 仙魄系统
self.XianPoSystem = require("Logic.XianPo.XianPoSystem")
-- 寻宝系统
self.TreasureHuntSystem = require("Logic.TreasureHunt.TreasureHuntSystem")
-- 仙甲寻宝
self.XJXunbaoSystem = require("Logic.TreasureHunt.XJXunbaoSystem")
-- 屏幕CD系统
self.ScreenCDSystem = require("Logic.ScreenCDSystem.ScreenCDSystem")
-- 首充系统
self.FristChargeSystem = require("Logic.FristCharge.FristChargeSystem")
-- 交易行
self.ShopAuctionSystem = require("Logic.ShopAuction.ShopAuctionSystem")
-- 世界答题
self.WorldAnswerSystem = require("Logic.WorldAnswer.WorldAnswerSystem")
-- 守护宗派
self.GuardianFactionSystem = require("Logic.GuardianFaction.GuardianFactionSystem")
-- 神兽岛
self.SoulMonsterSystem = require("Logic.SoulMonster.SoulMonsterSystem")
-- 境界BOSS
self.StatureBossSystem = require("Logic.StatureBoss.StatureBossSystem")
-- 境界灵压
self.RealmStifleSystem = require("Logic.RealmStifle.RealmStifleSystem")
-- 独白小对话框
self.SoliloquySystem = require("Logic.Soliloquy.SoliloquySystem")
-- 八极阵图
self.BaJiZhenSystem = require("Logic.BaJiZhen.BaJiZhenSystem")
-- 领地战
self.TerritorialWarSystem = require("Logic.TerritorialWar.TerritorialWarSystem")
-- 篝火
self.BonfireActivitySystem = require("Logic.BonfireActivitySystem.BonfireActivitySystem")
-- 灵体
self.LingTiSystem = require("Logic.LingTi.LingTiSystem")
-- 师门传道
self.ChuanDaoSystem = require("Logic.ChuanDao.ChuanDaoSystem")
-- 名人堂
self.CelebritySystem = require("Logic.Celebrity.CelebritySystem")
-- 首领求援
self.WorldSupportSystem = require("Logic.WorldSupport.WorldSupportSystem")
-- vip
self.VipSystem = require("Logic.VipSystem.VipSystem")
-- vip周常
self.ZhouChangSystem = require("Logic.VipZhouChang.ZhouChangSystem")
-- 机器人聊天系统
self.RobotChatSystem = require("Logic.RobotChat.RobotChatSystem")
-- 资源找回
self.ResBackSystem = require("Logic.ResBack.ResBackSystem")
-- 洗髓系统
self.RealmXiSuiSystem = require("Logic.RealmXiSui.RealmXiSuiSystem")
-- 限时购买
self.LimitShopSystem = require("Logic.LimitShop.LimitShopSystem")
-- 仙盟战
self.XmFightSystem = require("Logic.XmFight.XmFightSystem")
-- 仙盟Boss
self.XMBossSystem = require("Logic.XMBoss.XMBossSystem")
-- 仙盟战帮助界面
self.XmHelpSystem = require("Logic.XmHelp.XmHelpSystem")
-- 大小地图系统
self.MapSystem = require("Logic.Map.MapSystem")
-- 新时装系统
self.NewFashionSystem = require("Logic.NewFashion.NewFashionSystem")
-- 模型展示界面
self.ModelViewSystem = require("Logic.ModelView.ModelViewSystem")
-- 跨服活动展示地图
self.CrossServerMapSystem = require("Logic.CrossServerMapSystem.CrossServerMapSystem")
-- 功能预告功能
self.FunctionNoticeSystem = require("Logic.FunctionNotice.FunctionNoticeSystem")
-- 神秘商店
self.MysteryShopSystem = require("Logic.MysteryShopSystem.MysteryShopSystem")
-- 剑灵
self.FlySowardSystem = require("Logic.FlySoward.FlySowardSystem")
-- 转职
self.ChangeJobSystem = require("Logic.ChangeJob.ChangeJobSystem")
-- 新服活动
self.NewServerActivitySystem = require("Logic.NewServerActivity.NewServerActivitySystem")
-- 礼物赠送系统
self.PresentSystem = require("Logic.Present.PresentSystem")
--限时折扣
self.LimitDicretShopMgr = require("Logic.Shop.LimitDicretShopMgr")
self.LimitDicretShopMgr2 = require("Logic.Shop.LimitDicretShopMgr2")
--运营活动
self.YYHDSystem = require("Logic.YYHD.YYHDSystem")
--跳过
self.SkipSystem = require("Logic.Skip.SkipSystem")
--相亲墙
self.MarryDatingWallSystem = require("Logic.MarryDatingWall.MarryDatingWallSystem")
--每周福利抽奖
self.LuckyDrawWeekSystem = require("Logic.LuckyDrawWeek.LuckyDrawWeekSystem");
--周六狂欢
self.WeekCrazySystem = require("Logic.WeekCrazy.WeekCrazySystem")
--珍藏阁
self.ZhenCangGeSystem = require("Logic.ZhenCangGeSystem.ZhenCangGeSystem")
--技能系统lua端逻辑
self.PlayerSkillLuaSystem = require("Logic.PlayerSkill.PlayerSkillLuaSystem")
--分享点赞
self.ShareAndLikeSystem = require("Logic.ShareAndLike.ShareAndLike")
--巅峰竞技
self.TopJjcSystem = require("Logic.TopJjc.TopJjcSystem")
--护送
self.HuSongSystem = require("Logic.HuSong.HuSongSystem")
--主界面限时icon
self.MainLimitIconSystem = require("Logic.MainLimitIcon.MainLimitIconSystem")
--日常活动提醒系统
self.DailyActivityTipsSystem = require("Logic.DailyActivityTips.DailyActivityTipsSystem")
--幸运翻牌
self.LuckyCardSystem = require("Logic.LuckyCard.LuckyCardSystem")
--宠物装备系统
self.PetEquipSystem = require("Logic.Pet.PetEquipSystem")
--坐骑装备系统
self.MountEquipSystem = require("Logic.MountEquip.MountEquipSystem")
--天禁令
self.TianJinLingSystem = require("Logic.TianJinLing.TianJinLingSystem")
--满级提醒
self.FullLevelTipsSystem = require("Logic.FullLevelTips.FullLevelTipsSystem")
--修仙宝鉴
self.RankAwardSystem = require("Logic.RankAward.RankAwardSystem")
--魂甲
self.SoulEquipSystem = require("Logic.SoulEquip.SoulEquipSystem")
--跨服福地
self.CrossFuDiSystem = require("Logic.CrossFuDi.CrossFuDiSystem")
--数字输入
self.NumberInputSystem = require("Logic.NumberInput.NumberInputSystem")
--打坐系统
self.SitDownSystem = require("Logic.SitDown.SitDownSystem")
--新物品展示系统
self.GetNewItemSystem = require("Logic.GetNewItemSystem.GetNewItemSystem")
--loading窗体所需的背景纹理管理
self.LoadingTextureManager = require("Logic.Loading.LoadingTextureManager")
--物品快速获取系统
self.ItemQuickGetSystem = require("Logic.ItemQuickGetSystem.ItemQuickGetSystem")
--拍卖行
self.AuctionHouseSystem = require("Logic.AuctionHouse.AuctionHouseSystem")
--自定义按钮系统
self.MainCustomBtnSystem = require("Logic.MainCustomBtnSystem.MainCustomBtnSystem")
--公告系统
self.NoticeSystem = require("Logic.Notice.NoticeSystem")
--神兽
self.MonsterSoulSystem = require("Logic.MonsterSoul.MonsterSoulSystem")
--仙盟
self.GuildSystem = require("Logic.Guild.GuildSystem")
--剑灵阁挂机系统
self.SwordMandateSystem = require("Logic.SwordMandate.SwordMandateSystem")
--加载窗体系统
self.LoadingSystem = require("Logic.Loading.LoadingSystem")
--灵石获取系统
self.BigBoomSystem = require("Logic.BigBoomSystem.BigBoomSystem")
--新的装备系统
self.NewEquipmentSystem = require("Logic.Item.NewEquipmentSystem")
--NPC对话系统
self.NpcTalkSystem = require("Logic.NpcTalkSystem.NpcTalkSystem")
--lua角色系统
self.LuaCharacterSystem = require("Logic.LuaCharacter.LuaCharacterSystem")
--好友系统
self.FriendSystem = require("Logic.Friend.FriendsSystem")
--玩家展示系统
self.PlayerVisualSystem = require("Logic.Entity.Character.Player.PlayerVisualSystem")
--队伍系统
self.TeamSystem = require("Logic.Team.TeamSystem")
--目标系统
self.TargetSystem = require("Logic.TargetSystem.TargetSystem")
--圣装系统
self.HolyEquipSystem = require("Logic.HolyEquip.HolyEquipSystem")
--技能系统
self.PlayerSkillSystem = require("Logic.PlayerSkill.PlayerSkillSystem")
--挂机系统
self.MandateSystem = require("Logic.Mandate.MandateSystem")
--动作管理器
self.AnimManager = require("Logic.AnimManager.AnimManager")
--任务管理
self.LuaTaskManager = require("Logic.TaskSystem.Manager.LuaTaskManager")
CSGameCenter.TaskManager = self.LuaTaskManager
--任务行为管理
self.TaskController = require("Logic.TaskSystem.Manager.TaskController")
CSGameCenter.TaskController = self.TaskController
--任务消息管理
self.TaskManagerMsg = require("Logic.TaskSystem.Manager.TaskManagerMsg")
--引导系统
self.GuideSystem = require("Logic.GuideSystem.GuideSystem")
CSGameCenter.GuideSystem = self.GuideSystem
--阻断系统
self.BlockingUpPromptSystem = require("Logic.BlockingUpPrompt.BlockingUpPromptSystem")
CSGameCenter.BlockingUpPromptSystem = self.BlockingUpPromptSystem
--犒赏令系统
self.KaosOrderSystem = require("Logic.KaosOrderBaseSystem.KaosOrderSystem")
--封魔台系统
self.FengMoTaiSystem = require("Logic.FengMoTaiSystem.FengMoTaiSystem")
--魔魂系统
self.DevilSoulSystem = require("Logic.DevilSoul.DevilSoulSystem")
--ui场景管理
self.UISceneManager = require("Logic.UIScene.UISceneManager")
self.FlySwordGraveSystem = require("Logic.FlySoward.FlySwordGraveSystem")
--家园任务
self.HomeTaskSystem = require "Logic.HomeTaskSystem.HomeTaskSystem"
--完美情缘系统
self.PrefectRomanceSystem = require "Logic.PrefectRomance.PrefectRomanceSystem"
--NPC好友系统
self.NPCFriendSystem = require "Logic.Friend.NPCFriendSystem"
--家园个人信息留言板
self.CommunityMsgSystem = require "Logic.CommunityMsg.CommunityMsgSystem"
--家装大赛
self.DecorateSystem = require "Logic.Decorate.DecorateSystem"
--自定义换头像系统
self.CustomChangeHeadSystem = require "Logic.CustomChangeHeadSystem.CustomChangeHeadSystem"
--零元购系统
self.ZeroBuySystem = require "Logic.ZeroBuy.ZeroBuySystem"
--今日活动系统
self.TodayFuncSystem = require "Logic.TodayFunc.TodayFuncSystem"
--仙侣对决
self.LoversFightSystem = require "Logic.LoversFight.LoversFightSystem"
--幻装系统
self.UnrealEquipSystem = require "Logic.UnrealEquip.UnrealEquipSystem"
--仙盟争霸
self.XMZhengBaSystem = require "Logic.XMZhengBa.XMZhengBaSystem"
-- local _t3 = os.clock();
--玩家角色列表
self.PlayerRoleListSystem:Initialize(clearLoginData)
self.LoginSystem:Initialize(clearLoginData)
self.ServerListSystem:Initialize(clearLoginData)
-- 充值系统
self.PaySystem:Initialize(clearLoginData)
self.FriendSystem:Initialize()
self.FlySwordGraveSystem:Initialize()
self.GuildSystem:Initialize()
--宠物装备系统
self.PetEquipSystem:Initialize()
--坐骑装备系统
self.MountEquipSystem:Initialize()
-- 造化系统
self.NatureSystem:Initialize()
-- DataConfig.LoadAll()
self.CopyMapSystem:Initialize()
-- 日常活动系统
self.DailyActivitySystem:Initialize()
-- 离线经验系统
self.OfflineOnHookSystem:Initialize()
-- 炼器锻造系统
self.LianQiForgeSystem:Initialize()
-- 炼器宝石系统
self.LianQiGemSystem:Initialize()
-- 排行榜
self.RankSystem:Initialize()
-- 天书系统
self.GodBookSystem:Initialize()
-- 宗派技能系统
self.FactionSkillSystem:Initialize()
-- 反馈系统
self.FeedBackSystem:Initialize();
-- 成就系统
self.AchievementSystem:Initialize()
-- BossSystem
self.BossSystem:Initialize()
self.MountBossSystem:Initialize()
self.SlayerBossSystem:Initialize()
-- 法宝
self.RealmStifleSystem:Initialize()
-- 婚姻系统
self.MarriageSystem:Initialize()
-- 首席竞技场系统
self.ArenaShouXiSystem:Initialize()
-- 邮件系统
self.MailSystem:Initialize()
-- 套装系统
self.EquipmentSuitSystem:Initialize()
-- 称号系统
self.RoleTitleSystem:Initialize()
-- 宠物系统
self.PetSystem:Initialize()
-- 福利系统
self.WelfareSystem:Initialize()
-- 商城系统
self.ShopSystem:Initialize()
-- 开服狂欢
self.ServeCrazySystem:Initialize()
-- 成长之路
self.GrowthWaySystem:Initialize()
-- 开服活动
self.ServerActiveSystem:Initialize()
-- 每日累充
self.DailyRechargeSystem:Initialize()
-- 仙魄系统
self.XianPoSystem:Initialize()
-- 寻宝系统
self.TreasureHuntSystem:Initialize()
-- 仙甲寻宝
self.XJXunbaoSystem:Initialize()
-- 首充系统
self.FristChargeSystem:Initialize()
-- 交易行
self.ShopAuctionSystem:Initialize()
-- 世界答题
self.WorldAnswerSystem:Initialize()
-- 守护宗派
self.GuardianFactionSystem:Initialize()
-- 神兽岛
self.SoulMonsterSystem:Initialize()
-- 境界BOSS
self.StatureBossSystem:Initialize()
-- 独白小对话框
self.SoliloquySystem:Initialize()
-- 领地战
self.TerritorialWarSystem:Initialize()
-- 八极阵图
self.BaJiZhenSystem:Initialize()
-- 篝火
self.BonfireActivitySystem:Initialize()
-- 灵体
self.LingTiSystem:Initialize()
-- 师门传道
self.ChuanDaoSystem:Initialize()
-- 名人堂
self.CelebritySystem:Initialize()
-- 首领求援
self.WorldSupportSystem:Initialize()
-- Vip
self.VipSystem:Initialize()
-- 周常
self.ZhouChangSystem:Initialize()
-- 机器人聊天系统
self.RobotChatSystem:Initialize()
-- 资源找回
self.ResBackSystem:Initialize()
-- 洗髓系统
self.RealmXiSuiSystem:Initialize()
-- 限时购买
self.LimitShopSystem:Initialize()
-- 仙盟战
self.XmFightSystem:Initialize()
-- 仙盟Boss
self.XMBossSystem:Initialize()
-- 福地
self.FuDiSystem:Initialize()
-- 仙盟战
self.XmHelpSystem:Initialize()
-- 大小地图系统
self.MapSystem:Initialize()
-- 时装系统
self.NewFashionSystem:Initialize()
-- 模型展示系统
self.ModelViewSystem:Initialize()
-- 跨服活动展示地图
self.CrossServerMapSystem:Initialize()
-- 功能预告系统
self.FunctionNoticeSystem:Initialize()
self.MysteryShopSystem:Initialize()
-- 转职系统
self.ChangeJobSystem:Initialize()
--折扣礼包
self.LimitDicretShopMgr:Initialize()
self.LimitDicretShopMgr2:Initialize()
--运营活动
self.YYHDSystem:Initialize()
--巅峰竞技
self.TopJjcSystem:Initialize()
self.HuSongSystem:Initialize()
-- 转职系统
self.NewServerActivitySystem:Initialize()
--相亲墙
self.MarryDatingWallSystem:Initialize()
--幸运抽奖
self.LuckyDrawWeekSystem:Initialize();
--周六狂欢
self.WeekCrazySystem:Initialize()
--珍藏阁
self.ZhenCangGeSystem:Initialize()
--技能系统lua端逻辑
self.PlayerSkillLuaSystem:Initialize()
--分享点赞
self.ShareAndLikeSystem:Initialize()
--主界面限时icon
self.MainLimitIconSystem:Initialize()
--日常活动提醒系统
self.DailyActivityTipsSystem:Initialize()
--幸运翻牌
self.LuckyCardSystem:Initialize()
--天禁令
self.TianJinLingSystem:Initialize()
--满级提醒
self.FullLevelTipsSystem:Initialize()
--修仙宝鉴
self.RankAwardSystem:Initialize()
-- 魂甲
self.SoulEquipSystem:Initialize()
--跨服福地系统
self.CrossFuDiSystem:Initialize()
--新物品展示系统
self.GetNewItemSystem:Initialize()
--loading窗体的背景纹理处理
self.LoadingTextureManager:Initialize()
--物品快速获取系统
self.ItemQuickGetSystem:Initialize()
--拍卖行
self.AuctionHouseSystem:Initialize()
--自定义按钮系统
self.MainCustomBtnSystem:Initialize()
--公告系统
self.NoticeSystem:Initialize()
--剑灵阁挂机系统
self.SwordMandateSystem:Initialize()
--灵石获取系统
self.BigBoomSystem:Initialize()
--lua角色系统
self.LuaCharacterSystem:Initialize()
--玩家展示信息
self.PlayerVisualSystem:Initialize()
--队伍系统
self.TeamSystem:Initialize()
--圣装系统
self.HolyEquipSystem:Initialize()
--技能系统
self.PlayerSkillSystem:Initialize()
--挂机系统
self.MandateSystem:Initialize()
self.MonsterSoulSystem:Initialize()
--任务系统
self.LuaTaskManager:IniItialization()
self.TaskManagerMsg:Initialize()
--引导系统
self.GuideSystem:Initialize()
--阻断系统
self.BlockingUpPromptSystem:Initialize()
--犒赏令系统
self.KaosOrderSystem:Initialize()
--封魔台系统
self.FengMoTaiSystem:Initialize()
--魔魂系统
self.DevilSoulSystem:Initialize()
--家园任务系统
self.HomeTaskSystem:Initialize()
--完美情缘系统
self.PrefectRomanceSystem:Initialize()
--NPC好友系统
self.NPCFriendSystem:Initialize()
--家园个人信息留言板
self.CommunityMsgSystem:Initialize()
--家装大赛
self.DecorateSystem:Initialize()
--自定义换头像系统
self.CustomChangeHeadSystem:Initialize()
--零元购系统
self.ZeroBuySystem:Initialize()
--今日活动系统
self.TodayFuncSystem:Initialize()
--仙侣对决
self.LoversFightSystem:Initialize()
--幻装系统
self.UnrealEquipSystem:Initialize()
--仙盟争霸
self.XMZhengBaSystem:Initialize()
-- local _t4 = os.clock();
self.IsLogicInit = true
-- Debug.Log("====================== CSLogicInitialize require CS",_t2-_t1)
-- Debug.Log("====================== CSLogicInitialize require Lua",_t3-_t2)
-- Debug.Log("====================== CSLogicInitialize Initialize()",_t4-_t3)
end
-- 逻辑系统卸载
function GameCenter:LogicUninitialize(clearLoginData)
if not self.IsLogicInit then
return
end
self.FlySwordGraveSystem = nil
Utils.RemoveRequiredByName("Logic.FlySoward.FlySwordGraveSystem")
--新的装备系统
self.NewEquipmentSystem = nil
Utils.RemoveRequiredByName("Logic.Item.NewEquipmentSystem")
--新的物品管理系统
self.NewItemContianerSystem = nil
Utils.RemoveRequiredByName("Logic.Item.NewItemContianerSystem")
-- 消息提示系统
self.MsgPromptSystem = nil
Utils.RemoveRequiredByName("Logic.MsgPrompt.MsgPromptSystem")
-- 造化系统
self.NatureSystem:UnInitialize()
self.NatureSystem = nil
Utils.RemoveRequiredByName("Logic.Nature.NatureSystem")
self.FlySowardSystem:UnInitialize()
self.FlySowardSystem = nil
Utils.RemoveRequiredByName("Logic.FlySoward.FlySowardSystem")
-- 副本系统
self.CopyMapSystem:UnInitialize()
self.CopyMapSystem = nil
Utils.RemoveRequiredByName("Logic.CopyMapSystem.CopyMapSystem")
-- 日常活动系统
self.DailyActivitySystem:UnInitialize()
self.DailyActivitySystem = nil
Utils.RemoveRequiredByName("Logic.DailyActivity.DailyActivitySystem")
-- 离线挂机系统
self.OfflineOnHookSystem:UnInitialize()
self.OfflineOnHookSystem = nil
Utils.RemoveRequiredByName("Logic.OfflineOnHook.OfflineOnHookSystem")
-- 炼器锻造系统
self.LianQiForgeSystem:UnInitialize()
self.LianQiForgeSystem = nil
Utils.RemoveRequiredByName("Logic.LianQiForge.LianQiForgeSystem")
-- 炼器宝石系统
self.LianQiGemSystem:UnInitialize()
self.LianQiGemSystem = nil
Utils.RemoveRequiredByName("Logic.LianQiGem.LianQiGemSystem")
-- 天书系统
self.GodBookSystem:UnInitialize()
self.GodBookSystem = nil
Utils.RemoveRequiredByName("Logic.GodBook.GodBookSystem")
-- 识海系统
self.PlayerShiHaiSystem = nil
Utils.RemoveRequiredByName("Logic.PlayerShiHai.PlayerShiHaiSystem")
-- 宗派技能系统
self.FactionSkillSystem:UnInitialize()
self.FactionSkillSystem = nil
Utils.RemoveRequiredByName("Logic.FactionSkill.FactionSkillSystem")
-- 反馈系统
self.FeedBackSystem:UnInitialize();
self.FeedBackSystem = nil;
Utils.RemoveRequiredByName("Logic.FeedBack.FeedBackSystem");
-- 成就系统
self.AchievementSystem:UnInitialize()
self.AchievementSystem = nil;
Utils.RemoveRequiredByName("Logic.Achievement.AchievementSystem")
self.FriendSystem:UnInitialize()
self.FriendSystem = nil;
Utils.RemoveRequiredByName("Logic.Friend.FriendsSystem")
-- BossSystem
self.BossSystem:UnInitialize()
self.BossSystem = nil
Utils.RemoveRequiredByName("Logic.Boss.BossSystem")
self.MountBossSystem:UnInitialize()
self.MountBossSystem = nil
Utils.RemoveRequiredByName("Logic.Boss.MountBossSystem")
self.SlayerBossSystem:UnInitialize()
self.SlayerBossSystem = nil
Utils.RemoveRequiredByName("Logic.Boss.SlayerBossSystem")
-- 婚姻系统
self.MarriageSystem:UnInitialize()
self.MarriageSystem = nil
Utils.RemoveRequiredByName("Logic.Marriage.MarriageSystem")
-- 首席竞技场系统
self.ArenaShouXiSystem:UnInitialize()
self.ArenaShouXiSystem = nil
Utils.RemoveRequiredByName("Logic.Arena.ArenaShouXiSystem")
-- 前往BOSS所在地system
self.BossInfoTipsSystem = nil
Utils.RemoveRequiredByName("Logic.BossInfoTips.BossInfoTipsSystem")
-- 邮件系统
self.MailSystem:UnInitialize()
self.MailSystem = nil
Utils.RemoveRequiredByName("Logic.Mail.MailSystem")
-- 套装系统
self.EquipmentSuitSystem:UnInitialize()
self.EquipmentSuitSystem = nil
Utils.RemoveRequiredByName("Logic.EquipmentSuit.EquipmentSuitSystem")
-- 称号系统
self.RoleTitleSystem:UnInitialize()
self.RoleTitleSystem = nil
Utils.RemoveRequiredByName("Logic.RoleTitle.RoleTitleSystem")
-- 宠物系统
self.PetSystem:UnInitialize()
self.PetSystem = nil
Utils.RemoveRequiredByName("Logic.Pet.PetSystem")
-- 福利系统
self.WelfareSystem:UnInitialize()
self.WelfareSystem = nil
Utils.RemoveRequiredByName("Logic.Welfare.WelfareSystem")
-- 商城系统
self.ShopSystem:UnInitialize()
self.ShopSystem = nil
Utils.RemoveRequiredByName("Logic.Shop.ShopManager")
-- 每日累充
self.DailyRechargeSystem:UnInitialize()
self.DailyRechargeSystem = nil
Utils.RemoveRequiredByName("Logic.DailyRcharge.DailyRchargeSystem")
-- 仙魄系统
self.XianPoSystem:UnInitialize()
self.XianPoSystem = nil
Utils.RemoveRequiredByName("Logic.XianPo.XianPoSystem")
-- 寻宝系统
self.TreasureHuntSystem:UnInitialize()
self.TreasureHuntSystem = nil
Utils.RemoveRequiredByName("Logic.TreasureHunt.TreasureHuntSystem")
-- 仙甲寻宝
self.XJXunbaoSystem:UnInitialize()
self.XJXunbaoSystem = nil
Utils.RemoveRequiredByName("Logic.TreasureHunt.XJXunbaoSystem")
-- 开服活动
self.ServerActiveSystem:UnInitialize()
self.ServerActiveSystem = nil
Utils.RemoveRequiredByName("Logic.ServerActive.ServerActiveSystem")
-- 首充系统
self.FristChargeSystem:UnInitialize()
self.FristChargeSystem = nil
Utils.RemoveRequiredByName("Logic.FristCharge.FristChargeSystem")
-- 交易行
self.ShopAuctionSystem:UnInitialize()
self.ShopAuctionSystem = nil
Utils.RemoveRequiredByName("Logic.ShopAuction.ShopAuctionSystem")
-- 世界答题
self.WorldAnswerSystem:UnInitialize()
self.WorldAnswerSystem = nil
Utils.RemoveRequiredByName("Logic.WorldAnswer.WorldAnswerSystem")
-- 守护宗派
self.GuardianFactionSystem:UnInitialize()
self.GuardianFactionSystem = nil
Utils.RemoveRequiredByName("Logic.GuardianFaction.GuardianFactionSystem")
-- 神兽岛
self.SoulMonsterSystem:UnInitialize()
self.SoulMonsterSystem = nil
Utils.RemoveRequiredByName("Logic.SoulMonster.SoulMonsterSystem")
-- 境界BOSS
self.StatureBossSystem:UnInitialize()
self.StatureBossSystem = nil
Utils.RemoveRequiredByName("Logic.StatureBoss.StatureBossSystem")
-- 独白的小对话框
self.SoliloquySystem:UnInitialize()
self.SoliloquySystem = nil
Utils.RemoveRequiredByName("Logic.Soliloquy.SoliloquySystem")
-- 领地战
self.TerritorialWarSystem:UnInitialize()
self.TerritorialWarSystem = nil
Utils.RemoveRequiredByName("Logic.TerritorialWar.TerritorialWarSystem")
-- 篝火
self.BonfireActivitySystem:UnInitialize()
self.BonfireActivitySystem = nil
Utils.RemoveRequiredByName("Logic.BonfireActivitySystem.BonfireActivitySystem")
-- 福地
self.FuDiSystem:UnInitialize()
self.FuDiSystem = nil
Utils.RemoveRequiredByName("Logic.FuDi.FuDiSystem")
-- 排行
self.RankSystem = nil
Utils.RemoveRequiredByName("Logic.Rank.RankSystem")
-- 八极阵图
self.BaJiZhenSystem = nil
Utils.RemoveRequiredByName("Logic.BaJiZhen.BaJiZhenSystem")
-- 灵体
self.LingTiSystem:UnInitialize()
self.LingTiSystem = nil
Utils.RemoveRequiredByName("Logic.LingTi.LingTiSystem")
-- 灵体
self.ChuanDaoSystem:UnInitialize()
self.ChuanDaoSystem = nil
Utils.RemoveRequiredByName("Logic.ChuanDao.ChuanDaoSystem")
-- 名人堂
self.CelebritySystem:UnInitialize()
self.CelebritySystem = nil
Utils.RemoveRequiredByName("Logic.Celebrity.CelebritySystem")
-- 首领求援
self.WorldSupportSystem:UnInitialize()
self.WorldSupportSystem = nil
Utils.RemoveRequiredByName("Logic.WorldSupport.WorldSupportSystem")
-- vip
self.VipSystem:UnInitialize()
self.VipSystem = nil
Utils.RemoveRequiredByName("Logic.VipSystem.VipSystem")
-- vip周常
self.ZhouChangSystem:UnInitialize()
self.ZhouChangSystem = nil
Utils.RemoveRequiredByName("Logic.VipZhouChang.ZhouChangSystem")
-- 机器人聊天系统
self.RobotChatSystem:UnInitialize()
self.RobotChatSystem = nil
Utils.RemoveRequiredByName("Logic.RobotChat.RobotChatSystem")
-- 资源找回
self.ResBackSystem:UnInitialize()
self.ResBackSystem = nil
Utils.RemoveRequiredByName("Logic.ResBack.ResBackSystem")
-- 洗髓系统
self.RealmXiSuiSystem:UnInitialize()
self.RealmXiSuiSystem = nil
Utils.RemoveRequiredByName("Logic.RealmXiSui.RealmXiSuiSystem")
-- 限时购买
self.LimitShopSystem:UnInitialize()
self.LimitShopSystem = nil
Utils.RemoveRequiredByName("Logic.LimitShop.LimitShopSystem")
-- 仙盟战
self.XmFightSystem:UnInitialize()
self.XmFightSystem = nil
Utils.RemoveRequiredByName("Logic.XmFight.XmFightSystem")
-- 仙盟Boss
self.XMBossSystem:UnInitialize()
self.XMBossSystem = nil
Utils.RemoveRequiredByName("Logic.XMBoss.XMBossSystem")
-- 仙盟Boss
self.RealmStifleSystem:UnInitialize()
self.RealmStifleSystem = nil
Utils.RemoveRequiredByName("Logic.RealmStifle.RealmStifleSystem")
-- 大小地图系统
self.MapSystem:UnInitialize()
self.MapSystem = nil
Utils.RemoveRequiredByName("Logic.Map.MapSystem")
-- 模型展示界面
self.ModelViewSystem:UnInitialize()
self.ModelViewSystem = nil
Utils.RemoveRequiredByName("Logic.ModelView.ModelViewSystem")
-- 跨服活动展示地图
self.CrossServerMapSystem:UnInitialize()
self.CrossServerMapSystem = nil
Utils.RemoveRequiredByName("Logic.CrossServerMap.CrossServerMapSystem")
-- 功能预告系统
self.FunctionNoticeSystem:UnInitialize()
self.FunctionNoticeSystem = nil
Utils.RemoveRequiredByName("Logic.FunctionNotice.FunctionNoticeSystem")
-- 神秘商店
self.MysteryShopSystem:UnInitialize()
self.MysteryShopSystem = nil
Utils.RemoveRequiredByName("Logic.MysteryShopSystem.MysteryShopSystem")
-- 转职系统
self.ChangeJobSystem:UnInitialize()
self.ChangeJobSystem = nil
Utils.RemoveRequiredByName("Logic.ChangeJob.ChangeJobSystem")
-- 新服活动
self.NewServerActivitySystem:UnInitialize()
self.NewServerActivitySystem = nil
Utils.RemoveRequiredByName("Logic.NewServerActivity.NewServerActivitySystem")
-- 礼物赠送活动
self.PresentSystem:UnInitialize()
self.PresentSystem = nil
Utils.RemoveRequiredByName("Logic.Present.PresentSystem")
self.LimitDicretShopMgr:UnInitialize()
self.LimitDicretShopMgr = nil
Utils.RemoveRequiredByName("Logic.Shop.LimitDicretShopMgr")
self.LimitDicretShopMgr2:UnInitialize()
self.LimitDicretShopMgr2 = nil
Utils.RemoveRequiredByName("Logic.Shop.LimitDicretShopMgr2")
self.YYHDSystem:UnInitialize()
self.YYHDSystem = nil
Utils.RemoveRequiredByName("Logic.YYHD.YYHDSystem")
self.SkipSystem = nil
Utils.RemoveRequiredByName("Logic.Skip.SkipSystem")
--相亲墙
self.MarryDatingWallSystem:UnInitialize()
self.MarryDatingWallSystem = nil
Utils.RemoveRequiredByName("Logic.MarryDatingWall.MarryDatingWallSystem")
--每周福利抽奖
self.LuckyDrawWeekSystem:UnInitialize()
self.LuckyDrawWeekSystem = nil
Utils.RemoveRequiredByName("Logic.LuckyDrawWeek.LuckyDrawWeekSystem")
--时装
self.NewFashionSystem:UnInitialize()
self.NewFashionSystem = nil
Utils.RemoveRequiredByName("Logic.NewFashion.NewFashionSystem")
--周六狂欢
self.WeekCrazySystem = nil
Utils.RemoveRequiredByName("Logic.WeekCrazy.WeekCrazySystem")
--珍藏阁
self.ZhenCangGeSystem = nil
Utils.RemoveRequiredByName("Logic.ZhenCangGeSystem.ZhenCangGeSystem")
--技能系统lua端逻辑
self.PlayerSkillLuaSystem:UnInitialize()
self.PlayerSkillLuaSystem = nil
Utils.RemoveRequiredByName("Logic.PlayerSkill.PlayerSkillLuaSystem")
--巅峰竞技
self.TopJjcSystem:UnInitialize()
self.TopJjcSystem = nil
Utils.RemoveRequiredByName("Logic.TopJjc.TopJjcSystem")
self.HuSongSystem:UnInitialize()
self.HuSongSystem = nil
Utils.RemoveRequiredByName("Logic.HuSong.HuSongSystem")
--分享
self.ShareAndLikeSystem:UnInitialize();
self.ShareAndLikeSystem = nil
Utils.RemoveRequiredByName("Logic.ShareAndLike.ShareAndLike")
--主界面限时icon
self.MainLimitIconSystem:UnInitialize();
self.MainLimitIconSystem = nil
Utils.RemoveRequiredByName("Logic.MainLimitIcon.MainLimitIconSystem")
--日常活动提醒系统
self.DailyActivityTipsSystem:UnInitialize();
self.DailyActivityTipsSystem = nil
Utils.RemoveRequiredByName("Logic.DailyActivityTips.DailyActivityTipsSystem")
--幸运翻牌
self.LuckyCardSystem:UnInitialize();
self.LuckyCardSystem = nil
Utils.RemoveRequiredByName("Logic.LuckyCard.LuckyCardSystem")
--宠物装备
self.PetEquipSystem:UnInitialize();
self.PetEquipSystem = nil
Utils.RemoveRequiredByName("Logic.Pet.PetEquipSystem")
--坐骑装备
self.MountEquipSystem:UnInitialize();
self.MountEquipSystem = nil
Utils.RemoveRequiredByName("Logic.MountEquip.MountEquipSystem")
--天禁令
self.TianJinLingSystem:UnInitialize();
self.TianJinLingSystem = nil
Utils.RemoveRequiredByName("Logic.TianJinLing.TianJinLingSystem")
--满级提醒
self.FullLevelTipsSystem:UnInitialize()
self.FullLevelTipsSystem = nil
Utils.RemoveRequiredByName("Logic.FullLevelTips.FullLevelTipsSystem")
--修仙宝鉴
self.RankAwardSystem:UnInitialize()
self.RankAwardSystem = nil
Utils.RemoveRequiredByName("Logic.RankAward.RankAwardSystem")
-- 魂甲
self.SoulEquipSystem:UnInitialize()
self.SoulEquipSystem = nil
Utils.RemoveRequiredByName("Logic.SoulEquip.SoulEquipSystem")
--开服狂欢
self.ServeCrazySystem:UnInitialize()
self.ServeCrazySystem = nil
Utils.RemoveRequiredByName("Logic.ServeCrazy.ServeCrazySystem")
--跨服福地
self.CrossFuDiSystem:UnInitialize()
self.CrossFuDiSystem = nil
Utils.RemoveRequiredByName("Logic.CrossFuDi.CrossFuDiSystem")
--数字输入
self.NumberInputSystem = nil
Utils.RemoveRequiredByName("Logic.NumberInput.NumberInputSystem")
--打坐系统
self.SitDownSystem = nil
Utils.RemoveRequiredByName("Logic.SitDown.SitDownSystem")
--loading窗体所需的背景纹理管理
self.LoadingTextureManager:UnInitialize();
self.LoadingTextureManager = nil;
Utils.RemoveRequiredByName("Logic.Loading.LoadingTextureManager")
--新物品展示系统
self.GetNewItemSystem:UnInitialize();
self.GetNewItemSystem = nil
Utils.RemoveRequiredByName("Logic.GetNewItemSystem.GetNewItemSystem")
--物品快速获取系统
self.ItemQuickGetSystem:UnInitialize();
self.ItemQuickGetSystem = nil
Utils.RemoveRequiredByName("Logic.ItemQuickGetSystem.ItemQuickGetSystem")
self.ItemTipsMgr = nil
Utils.RemoveRequiredByName("Logic.Item.ItemTipsMgr")
--拍卖行
self.AuctionHouseSystem:UnInitialize();
self.AuctionHouseSystem = nil
Utils.RemoveRequiredByName("Logic.AuctionHouse.AuctionHouseSystem")
--自定义按钮系统
self.MainCustomBtnSystem:UnInitialize();
self.MainCustomBtnSystem = nil
Utils.RemoveRequiredByName("Logic.MainCustomBtnSystem.MainCustomBtnSystem")
--公告系统
self.NoticeSystem:UnInitialize()
self.NoticeSystem = nil
Utils.RemoveRequiredByName("Logic.Notice.NoticeSystem")
--神兽
self.MonsterSoulSystem:UnInitialize()
self.MonsterSoulSystem = nil
Utils.RemoveRequiredByName("Logic.MonsterSoul.MonsterSoulSystem")
--仙盟
self.GuildSystem:UnInitialize();
self.GuildSystem = nil
Utils.RemoveRequiredByName("Logic.Guild.GuildSystem")
--剑灵阁挂机系统
self.SwordMandateSystem:UnInitialize();
self.SwordMandateSystem = nil
Utils.RemoveRequiredByName("Logic.SwordMandate.SwordMandateSystem")
--灵石获取系统
self.BigBoomSystem:UnInitialize();
self.BigBoomSystem = nil
Utils.RemoveRequiredByName("Logic.BigBoomSystem.BigBoomSystem")
--lua角色系统
self.LuaCharacterSystem:UnInitialize();
self.LuaCharacterSystem = nil
Utils.RemoveRequiredByName("Logic.LuaCharacter.LuaCharacterSystem")
--家装大赛
self.DecorateSystem:UnInitialize();
self.DecorateSystem = nil
Utils.RemoveRequiredByName("Logic.Decorate.DecorateSystem")
--加载窗体系统
self.LoadingSystem = nil
Utils.RemoveRequiredByName("Logic.Loading.LoadingSystem")
--自定义换头像系统
self.CustomChangeHeadSystem:UnInitialize()
self.CustomChangeHeadSystem = nil
Utils.RemoveRequiredByName("Logic.CustomChangeHeadSystem.CustomChangeHeadSystem")
--零元购系统
self.ZeroBuySystem:UnInitialize()
self.ZeroBuySystem = nil
Utils.RemoveRequiredByName("Logic.ZeroBuy.ZeroBuySystem")
self.PlayerRoleListSystem:UnInitialize(clearLoginData);
self.LoginSystem:UnInitialize(clearLoginData);
self.ServerListSystem:UnInitialize(clearLoginData);
self.PaySystem:UnInitialize(clearLoginData)
if clearLoginData then
Debug.Log("清理登录数据之后,卸载所有数据!");
--玩家角色列表
self.PlayerRoleListSystem = nil
Utils.RemoveRequiredByName("Logic.PlayerRoleList.PlayerRoleListSystem");
--登录系统
self.LoginSystem = nil;
Utils.RemoveRequiredByName("Logic.Login.LoginSystem");
--服务器列表
self.ServerListSystem = nil;
Utils.RemoveRequiredByName("Logic.ServerList.ServerListSystem")
-- 充值系统
self.PaySystem = nil
Utils.RemoveRequiredByName("Logic.PaySystem.PaySystem")
end
--玩家展示系统
self.PlayerVisualSystem:UnInitialize();
self.PlayerVisualSystem = nil;
Utils.RemoveRequiredByName("Logic.Entity.Character.Player.PlayerVisualSystem")
--队伍系统
self.TeamSystem = nil
Utils.RemoveRequiredByName("Logic.Team.TeamSystem")
--目标系统
self.TargetSystem = nil
Utils.RemoveRequiredByName("Logic.TargetSystem.TargetSystem")
--圣装系统
self.HolyEquipSystem:UnInitialize()
self.HolyEquipSystem = nil
Utils.RemoveRequiredByName("Logic.HolyEquip.HolyEquipSystem")
--技能系统
self.PlayerSkillSystem:UnInitialize()
self.PlayerSkillSystem = nil
Utils.RemoveRequiredByName("Logic.PlayerSkill.PlayerSkillSystem")
--挂机系统
self.MandateSystem:UnInitialize()
self.MandateSystem = nil
Utils.RemoveRequiredByName("Logic.Mandate.MandateSystem")
--动作管理器
self.AnimManager = nil
Utils.RemoveRequiredByName("Logic.AnimManager.AnimManager")
--任务系统
self.LuaTaskManager:UnInitialization()
self.TaskManagerMsg:UnInitialize()
self.LuaTaskManager = nil
self.TaskManagerMsg = nil
self.TaskController = nil
Utils.RemoveRequiredByName("Logic.TaskSystem.Manager.LuaTaskManager")
Utils.RemoveRequiredByName("Logic.TaskSystem.Manager.TaskManagerMsg")
Utils.RemoveRequiredByName("Logic.TaskSystem.Manager.TaskController")
--引导系统
self.GuideSystem:UnInitialize()
self.GuideSystem = nil
Utils.RemoveRequiredByName("Logic.GuideSystem.GuideSystem")
--阻断系统
self.BlockingUpPromptSystem:UnInitialize()
self.BlockingUpPromptSystem = nil
Utils.RemoveRequiredByName("Logic.BlockingUpPrompt.BlockingUpPromptSystem")
self.KaosOrderSystem:UnInitialize()
self.KaosOrderSystem = nil
Utils.RemoveRequiredByName("Logic.KaosOrderBaseSystem.KaosOrderSystem")
self.FengMoTaiSystem:UnInitialize()
self.FengMoTaiSystem = nil
Utils.RemoveRequiredByName("Logic.FengMoTaiSystem.FengMoTaiSystem")
--魔魂系统
self.DevilSoulSystem:UnInitialize()
self.DevilSoulSystem = nil
Utils.RemoveRequiredByName("Logic.DevilSoul.DevilSoulSystem")
--成长之路
self.GrowthWaySystem:UnInitialize()
self.GrowthWaySystem = nil
Utils.RemoveRequiredByName("Logic.GrowthWay.GrowthWaySystem")
self.UISceneManager = nil
Utils.RemoveRequiredByName("Logic.UIScene.UISceneManager")
--家园任务
self.HomeTaskSystem:UnInitialize()
self.HomeTaskSystem = nil
Utils.RemoveRequiredByName("Logic.HomeTaskSystem.HomeTaskSystem")
--完美情缘
self.PrefectRomanceSystem:UnInitialize()
self.PrefectRomanceSystem = nil
Utils.RemoveRequiredByName("Logic.PrefectRomance.PrefectRomanceSystem")
--NPC好友系统
self.NPCFriendSystem:UnInitialize()
self.NPCFriendSystem = nil
Utils.RemoveRequiredByName("Logic.Friend.NPCFriendSystem")
--家园个人信息留言板
self.CommunityMsgSystem:UnInitialize()
self.CommunityMsgSystem = nil
Utils.RemoveRequiredByName("Logic.CommunityMsg.CommunityMsgSystem")
--今日活动系统
self.TodayFuncSystem:UnInitialize()
self.TodayFuncSystem = nil
Utils.RemoveRequiredByName("Logic.TodayFunc.TodayFuncSystem")
--仙侣对决
self.LoversFightSystem:UnInitialize()
self.LoversFightSystem = nil
Utils.RemoveRequiredByName("Logic.LoversFight.LoversFightSystem")
--幻装系统
self.UnrealEquipSystem:UnInitialize()
self.UnrealEquipSystem = nil
Utils.RemoveRequiredByName("Logic.UnrealEquip.UnrealEquipSystem")
--仙盟争霸
self.XMZhengBaSystem:UnInitialize()
self.XMZhengBaSystem = nil
Utils.RemoveRequiredByName("Logic.XMZhengBa.XMZhengBaSystem")
self.IsLogicInit = false
-- 移除所有Lua端定义的事件
LuaEventManager.ClearAllLuaEvents();
end
-- 更新心跳 每帧刷新
function GameCenter:Update(deltaTime)
-- Debug.Log("============[Update]================",deltaTime)
if self.IsCoreInit then
self.UIFormManager:Update(deltaTime);
-- self.AIManager:Update(deltaTime);
self.TexHttpSyncSystem:Update(deltaTime);
end
if self.IsLogicInit then
self.MapLogicSystem:Update(deltaTime)
self.BonfireActivitySystem:Update(deltaTime)
self.ArenaShouXiSystem:Update(deltaTime)
self.FunctionNoticeSystem:Update(deltaTime)
self.YYHDSystem:Update()
self.ShareAndLikeSystem:Update()
self.MainLimitIconSystem:Update()
self.PetEquipSystem:Update(deltaTime)
self.MountEquipSystem:Update(deltaTime)
self.CrossFuDiSystem:Update(deltaTime)
self.SwordMandateSystem:Update()
self.ModelViewSystem:Update(deltaTime)
self.LuaCharacterSystem:Update(deltaTime)
self.TeamSystem:Update(deltaTime)
self.LuaMainFunctionSystem:Update(deltaTime)
self.MandateSystem:Update(deltaTime)
self.LoginSystem:Update(deltaTime);
self.LuaTaskManager:Update(deltaTime)
self.TaskController:Update(deltaTime)
self.BlockingUpPromptSystem:Update(deltaTime)
self.UISceneManager:Update(deltaTime)
self.DevilSoulSystem:Update(deltaTime)
self.LoversFightSystem:Update(deltaTime)
end
end
-- 更新心跳 5帧更新一次
function GameCenter:FrameUpdate(deltaTime)
self.FrameCount = self.FrameCount + 1
self.DeltaTime = self.DeltaTime + deltaTime
if self.FrameCount >= 5 then
if self.IsLogicInit then
self.GuildSystem:Update(self.DeltaTime)
self.MonsterSoulSystem:Update(self.DeltaTime)
self.TopJjcSystem:Update(self.DeltaTime)
self.LimitDicretShopMgr:Update(self.DeltaTime)
self.LimitDicretShopMgr2:Update(self.DeltaTime)
self.BossSystem:Update(self.DeltaTime)
self.MountBossSystem:Update(self.DeltaTime)
self.SlayerBossSystem:Update(self.DeltaTime)
self.EquipmentSuitSystem:Update(self.DeltaTime)
self.DailyActivitySystem:Update(self.DeltaTime)
self.TerritorialWarSystem:Update(self.DeltaTime)
self.MarriageSystem:Update(self.DeltaTime)
self.RobotChatSystem:Update(self.DeltaTime)
self.LingTiSystem:Update(self.DeltaTime)
self.FuDiSystem:Update(self.DeltaTime) --0.07ms,需要优化算法
self.LimitShopSystem:Update(self.DeltaTime)
self.VipSystem:Update(self.DeltaTime)
self.ChuanDaoSystem:Update(self.DeltaTime)
self.GrowthWaySystem:Update(self.DeltaTime)
self.WelfareSystem:Update()
self.ServeCrazySystem:Update(self.DeltaTime)
self.ChangeJobSystem:Update(self.DeltaTime)
self.XianPoSystem:Update(self.DeltaTime)
self.NewServerActivitySystem:Update(self.DeltaTime)
self.DailyActivityTipsSystem:Update()
self.SoulEquipSystem:Update()
self.GetNewItemSystem:Update(self.DeltaTime)
self.AuctionHouseSystem:Update(self.DeltaTime)
self.MainCustomBtnSystem:Update(self.DeltaTime)
--技能系统更新
self.PlayerSkillSystem:Update(self.DeltaTime)
self.FristChargeSystem:Update(self.DeltaTime)
self.PrefectRomanceSystem:Update(self.DeltaTime)
self.TreasureHuntSystem:Update(self.DeltaTime)
self.NPCFriendSystem:Update(self.DeltaTime)
self.HuSongSystem:Update(self.DeltaTime)
self.UnrealEquipSystem:Update(self.DeltaTime)
self.XMZhengBaSystem:Update(self.DeltaTime)
end
self.DeltaTime = 0
self.FrameCount = 0
end
end
function GameCenter.PushFixEvent(eventID, obj, sender)
LuaEventManager.PushFixEvent(eventID, obj, sender);
end
function GameCenter.RegFixEventHandle(eventID, func, caller)
LuaEventManager.RegFixEventHandle(eventID, func, caller);
end
function GameCenter.UnRegFixEventHandle(eventID, func, caller)
LuaEventManager.UnRegFixEventHandle(eventID, func, caller);
end
return GameCenter