From 82bbf8b17498b1d415128b3e8a613c4efadf5b96 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 27 十一月 2024 11:45:28 +0800
Subject: [PATCH] 10318 【英文】【越南】【BT】【砍树】统一增加奖励获得封包(增加每日礼包事件DailyGiftbag;屏蔽多余的CTG事件下发;)
---
ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py b/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py
index 7abc70c..32db39d 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/PyDataManager.py
@@ -30,6 +30,7 @@
import PlayerRecData
import GameWorldMineArea
import PyGameDataStruct
+import PlayerPackData
import PlayerFuncTeam
import IpyGameDataPY
import PlayerCharm
@@ -316,6 +317,7 @@
class PyGameDataManager(object):
def __init__(self):
+ self.DBPlayerPackDataManager = PlayerPackData.DBPlayerPackDataManager()
self.DBGameRecDataManager = GameRecData.DBGameRecDataManager()
self.DBPyFuncTeamManager = PlayerFuncTeam.DBPyFuncTeamManager()
self.DBPyFuncTeamMemManager = PlayerFuncTeam.DBPyFuncTeamMemManager()
@@ -352,6 +354,7 @@
def GetSaveData(self):
buff = ""
+ buff += self.DBPlayerPackDataManager.GetSaveData()
buff += self.DBGameRecDataManager.GetSaveData()
buff += self.DBPyFuncTeamManager.GetSaveData()
buff += self.DBPyFuncTeamMemManager.GetSaveData()
@@ -387,6 +390,7 @@
return buff
def LoadGameData(self, gameBuffer, pos):
+ pos = self.DBPlayerPackDataManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer))
pos = self.DBGameRecDataManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer))
pos = self.DBPyFuncTeamManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer))
pos = self.DBPyFuncTeamMemManager.LoadPyGameData(gameBuffer, pos, len(gameBuffer))
@@ -514,6 +518,11 @@
pyGameDataMgr = GetPyGameDataManager()
return pyGameDataMgr.DBGameRecDataManager
+def GetDBPlayerPackDataManager():
+ # 玩家打包数据管理
+ pyGameDataMgr = GetPyGameDataManager()
+ return pyGameDataMgr.DBPlayerPackDataManager
+
def GetDBPyFuncTeamManager():
# 功能队伍管理
pyGameDataMgr = GetPyGameDataManager()
--
Gitblit v1.8.0