From 65906cf2469e210832a161b62a5ddf7ec70d4084 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 09 九月 2024 15:35:11 +0800 Subject: [PATCH] 10261 【越南】【砍树】仙盟徽章,头像框,头像(动态),聊天气泡,聊天表情(增加仙盟徽章) --- ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py b/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py index 291784f..7abc70c 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py @@ -26,6 +26,7 @@ import CrossRealmPK import AuctionHouse import PlayerAssist +import GameRecData import PlayerRecData import GameWorldMineArea import PyGameDataStruct @@ -149,6 +150,9 @@ cnt = 0 for dbData in self.playerViewCachePyDict.values(): + if dbData.PlayerID < 10000: + # 假人玩家不存储 + continue cnt += 1 savaData += dbData.getBuffer() @@ -312,6 +316,7 @@ class PyGameDataManager(object): def __init__(self): + self.DBGameRecDataManager = GameRecData.DBGameRecDataManager() self.DBPyFuncTeamManager = PlayerFuncTeam.DBPyFuncTeamManager() self.DBPyFuncTeamMemManager = PlayerFuncTeam.DBPyFuncTeamMemManager() self.DBPlayerRecDataManager = PlayerRecData.DBPlayerRecDataManager() @@ -347,6 +352,7 @@ def GetSaveData(self): buff = "" + buff += self.DBGameRecDataManager.GetSaveData() buff += self.DBPyFuncTeamManager.GetSaveData() buff += self.DBPyFuncTeamMemManager.GetSaveData() buff += self.DBPlayerRecDataManager.GetSaveData() @@ -381,6 +387,7 @@ return buff def LoadGameData(self, gameBuffer, pos): + pos = self.DBGameRecDataManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) pos = self.DBPyFuncTeamManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) pos = self.DBPyFuncTeamMemManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) pos = self.DBPlayerRecDataManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) @@ -502,6 +509,11 @@ pyGameDataMgr = GetPyGameDataManager() return pyGameDataMgr.familyStoreItemManager +def GetDBGameRecDataManager(): + # 通用记录表新管理 + pyGameDataMgr = GetPyGameDataManager() + return pyGameDataMgr.DBGameRecDataManager + def GetDBPyFuncTeamManager(): # 功能队伍管理 pyGameDataMgr = GetPyGameDataManager() -- Gitblit v1.8.0