From 6a9883b425e53e714b9a930ec70b7544999611a6 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 08 五月 2025 12:01:45 +0800 Subject: [PATCH] 16 卡牌服务端(db数据备档、加载;仙盟基础转到MapServer;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py index 397afc1..77e539c 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py @@ -52,6 +52,7 @@ import GameMap import NPCRealmRefresh import IpyGameDataPY +import DBDataMgr #--------------------------------------------------------------------- ## 副本开启 # @param gameWorld IPY_GameWorld @@ -592,6 +593,9 @@ # @return None # @remarks 函数详细说明. def InitGameWorld(tick): + if not PyGameData.g_initGame: + PyGameData.g_initGame = True + DBDataMgr.OnServerStart() gameWorld = GameWorld.GetGameWorld() ItemCommon.InitPyItem() EventShell.DoReloadRefresh() @@ -777,6 +781,8 @@ curMinute = curTime.minute if curMinute == PyGameData.g_mapLastProcess_Minute: return + if PyGameData.g_initGame: + DBDataMgr.OnMinute(curMinute) PyGameData.g_mapLastProcess_Minute = curMinute PlayerTeam.OnCheckTeamPlayerDisconnectTimeout(tick) -- Gitblit v1.8.0