From df1375798cf673f2a88c813d944cd6346c6e7be3 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期四, 15 五月 2025 19:48:24 +0800 Subject: [PATCH] 0312 新架构一个地图就是一个服务器,增加DB管理;初版遗漏了更新旧的pymongo代码后续补充 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyGameData.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyGameData.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyGameData.py index 1eb9ee8..e5d250c 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyGameData.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyGameData.py @@ -139,3 +139,8 @@ g_singleAtkRecordList = None # 单次攻击记录 +g_UserCtrlDBFirstInit = False +g_playerDataCntInfo = {} # 玩家各表最后一次存档时数据条数 {playerID:{表名:条数, ...}, ...} +g_mergeRegisterPlayerDict = {} # 跨服玩家数据缓存 {accID:[loginTime, logoutTime, recvPack, groupID], ...} + +g_usrCtrlDB = None #数据库实例 \ No newline at end of file -- Gitblit v1.8.0