From 2f84574840276a58262d3293570355d93e344c5c Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 28 二月 2019 14:57:24 +0800
Subject: [PATCH] 860312 远程工具

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py
index bcc347c..16d3b83 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py
@@ -18,6 +18,31 @@
 import GameWorld
 
 
+#拍卖关注管理,注意该类只处理数据逻辑,功能相关逻辑不要写在该类,不然重读脚本不会生效
+class AuctionAttentionManager(object):
+    
+    def __init__(self):
+        return
+    
+    ## ===========================================================================================
+    
+    # 保存数据 存数据库和realtimebackup
+    def GetSaveData(self):
+        savaData = ""
+        cntData = ""
+        cnt = 0
+        
+        GameWorld.Log("Save AuctionAttention count :%s" % cnt)
+        return CommFunc.WriteDWORD(cntData, cnt) + savaData
+    
+    # 从数据库载入数据
+    def LoadPyGameData(self, datas, pos, dataslen):
+        cnt, pos = CommFunc.ReadDWORD(datas, pos)
+        GameWorld.Log("Load AuctionAttention count :%s" % cnt)
+        
+        return pos
+
+
 #拍卖记录管理,注意该类只处理数据逻辑,功能相关逻辑不要写在该类,不然重读脚本不会生效
 class AuctionRecordManager(object):
     

--
Gitblit v1.8.0