From 167f1018e83452c601f84fa12e0d42fa47cf7ae4 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 28 十二月 2018 11:55:22 +0800 Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(未同步的PK信息增加存储DB,防止服务器维护后数据丢失) --- ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py b/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py index f0c6132..23be71f 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py @@ -44,6 +44,7 @@ class PyGameDataManager(object): def __init__(self): + self.crossPKUnNotifyOverInfo = CrossRealmPK.CrossPKUnNotifyOverInfoManager() self.crossPKBillboard = CrossRealmPK.CrossPKBillboardManager() self.XMZZManager = PlayerXMZZ.XMZZManager() self.sealDemonManager = PlayerSealDemon.SealDemonManager() @@ -60,6 +61,7 @@ def GetSaveData(self): buff = "" + buff += self.crossPKUnNotifyOverInfo.GetSaveData() buff += self.crossPKBillboard.GetSaveData() buff += self.XMZZManager.GetSaveData() buff += self.sealDemonManager.GetSaveData() @@ -75,6 +77,7 @@ return buff def LoadGameData(self, gameBuffer, pos): + pos = self.crossPKUnNotifyOverInfo.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) pos = self.crossPKBillboard.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) pos = self.XMZZManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) pos = self.sealDemonManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) @@ -89,6 +92,10 @@ pos = self.socialInfoManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer)) return pos +# 跨服竞技场未通知玩家的比赛结果 +def GetCrossPKUnNotifyOverInfoManager(): + return PyGameData.g_pyGameDataManager.crossPKUnNotifyOverInfo + # 跨服竞技场排行榜管理 def GetCrossPKBillboardManager(): return PyGameData.g_pyGameDataManager.crossPKBillboard -- Gitblit v1.8.0