From 1ba840bdb48f898943de8700565ac6b5449b3f3a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 五月 2022 17:01:59 +0800
Subject: [PATCH] 9415 【BT】【后端】古神战场(召集队伍可设置是否仅召集本服玩家: 修改封包注册)
---
ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py | 253 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 252 insertions(+), 1 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
index bcb5cc3..68a9d5b 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
@@ -2291,5 +2291,256 @@
self.PlayerName = Str
else:
self.PlayerName = Str[:33]
-
+
+# 玩家亲密表 #tagDBPyPlayerIntimacy
+class tagDBPyPlayerIntimacy(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ('PlayerID', ctypes.c_ulong),
+ ('TagID', ctypes.c_ulong),
+ ('Intimacy', ctypes.c_ulong),
+ ('ADOResult', ctypes.c_ulong),
+ ]
+
+ def __init__(self):
+ Structure.__init__(self)
+ self.clear()
+
+
+ def clear(self):
+ memset(addressof(self), 0, self.getLength())
+
+ def readData(self, buf, pos = 0, length = 0):
+ if not pos <= length:
+ return -1
+ if len(buf) < pos + self.getLength():
+ return -1
+ self.clear()
+ self.PlayerID, pos = CommFunc.ReadDWORD(buf, pos)
+ self.TagID, pos = CommFunc.ReadDWORD(buf, pos)
+ self.Intimacy, pos = CommFunc.ReadDWORD(buf, pos)
+ return self.getLength()
+
+
+ def getBuffer(self):
+ buf = create_string_buffer(self.getLength())
+ memmove(addressof(buf), addressof(self), self.getLength())
+ return string_at(addressof(buf), self.getLength())
+
+ def getLength(self):
+ return sizeof(tagDBPyPlayerIntimacy)
+
+ def outputString(self):
+ output = '''// 玩家亲密表 #tagDBPyPlayerIntimacy:
+ PlayerID = %s,
+ TagID = %s,
+ Intimacy = %s,
+ ADOResult = %s,
+ '''%(
+ self.PlayerID,
+ self.TagID,
+ self.Intimacy,
+ self.ADOResult,
+ )
+ return output
+
+
+# 魅力贡献值记录表 #tagDBPyCharmValueRec
+class tagDBPyCharmValueRec(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ('PlayerID', ctypes.c_ulong),
+ ('Type', ctypes.c_ubyte),
+ ('OfferPlayerID', ctypes.c_ulong),
+ ('CharmValue', ctypes.c_ulong),
+ ('UpdTime', ctypes.c_ulong),
+ ('ADOResult', ctypes.c_ulong),
+ ]
+
+ def __init__(self):
+ Structure.__init__(self)
+ self.clear()
+
+
+ def clear(self):
+ memset(addressof(self), 0, self.getLength())
+
+ def readData(self, buf, pos = 0, length = 0):
+ if not pos <= length:
+ return -1
+ if len(buf) < pos + self.getLength():
+ return -1
+ self.clear()
+ self.PlayerID, pos = CommFunc.ReadDWORD(buf, pos)
+ self.Type, pos = CommFunc.ReadBYTE(buf, pos)
+ self.OfferPlayerID, pos = CommFunc.ReadDWORD(buf, pos)
+ self.CharmValue, pos = CommFunc.ReadDWORD(buf, pos)
+ self.UpdTime, pos = CommFunc.ReadDWORD(buf, pos)
+ return self.getLength()
+
+
+ def getBuffer(self):
+ buf = create_string_buffer(self.getLength())
+ memmove(addressof(buf), addressof(self), self.getLength())
+ return string_at(addressof(buf), self.getLength())
+
+ def getLength(self):
+ return sizeof(tagDBPyCharmValueRec)
+
+ def outputString(self):
+ output = '''// 魅力贡献值记录表 #tagDBPyCharmValueRec:
+ PlayerID = %s,
+ Type = %s,
+ OfferPlayerID = %s,
+ CharmValue = %s,
+ UpdTime = %s,
+ ADOResult = %s,
+ '''%(
+ self.PlayerID,
+ self.Type,
+ self.OfferPlayerID,
+ self.CharmValue,
+ self.UpdTime,
+ self.ADOResult,
+ )
+ return output
+
+
+# 未通知的情缘送礼记录 #tagDBPyUnNotifyLoveGiftRec
+class tagDBPyUnNotifyLoveGiftRec(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ('PlayerID', ctypes.c_ulong),
+ ('GivePlayerID', ctypes.c_ulong),
+ ('GiftNum', ctypes.c_ushort),
+ ('GiftCount', ctypes.c_ulong),
+ ('SendTime', ctypes.c_ulong),
+ ('ADOResult', ctypes.c_ulong),
+ ]
+
+ def __init__(self):
+ Structure.__init__(self)
+ self.clear()
+
+
+ def clear(self):
+ memset(addressof(self), 0, self.getLength())
+
+ def readData(self, buf, pos = 0, length = 0):
+ if not pos <= length:
+ return -1
+ if len(buf) < pos + self.getLength():
+ return -1
+ self.clear()
+ self.PlayerID, pos = CommFunc.ReadDWORD(buf, pos)
+ self.GivePlayerID, pos = CommFunc.ReadDWORD(buf, pos)
+ self.GiftNum, pos = CommFunc.ReadWORD(buf, pos)
+ self.GiftCount, pos = CommFunc.ReadDWORD(buf, pos)
+ self.SendTime, pos = CommFunc.ReadDWORD(buf, pos)
+ return self.getLength()
+
+
+ def getBuffer(self):
+ buf = create_string_buffer(self.getLength())
+ memmove(addressof(buf), addressof(self), self.getLength())
+ return string_at(addressof(buf), self.getLength())
+
+ def getLength(self):
+ return sizeof(tagDBPyUnNotifyLoveGiftRec)
+
+ def outputString(self):
+ output = '''// 未通知的情缘送礼记录 #tagDBPyUnNotifyLoveGiftRec:
+ PlayerID = %s,
+ GivePlayerID = %s,
+ GiftNum = %s,
+ GiftCount = %s,
+ SendTime = %s,
+ ADOResult = %s,
+ '''%(
+ self.PlayerID,
+ self.GivePlayerID,
+ self.GiftNum,
+ self.GiftCount,
+ self.SendTime,
+ self.ADOResult,
+ )
+ return output
+
+
+# 伴侣表 #tagDBPyCouple
+class tagDBPyCouple(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ('PlayerIDA', ctypes.c_ulong),
+ ('PlayerIDB', ctypes.c_ulong),
+ ('NewMarryTime', ctypes.c_ulong),
+ ('MarryTime', ctypes.c_ulong),
+ ('BridePriceState', ctypes.c_ulong),
+ ('BreakRequestID', ctypes.c_ulong),
+ ('BreakRequestTime', ctypes.c_ulong),
+ ('BreakRequestTimeA', ctypes.c_ulong),
+ ('BreakRequestTimeB', ctypes.c_ulong),
+ ('ADOResult', ctypes.c_ulong),
+ ]
+
+ def __init__(self):
+ Structure.__init__(self)
+ self.clear()
+
+
+ def clear(self):
+ memset(addressof(self), 0, self.getLength())
+
+ def readData(self, buf, pos = 0, length = 0):
+ if not pos <= length:
+ return -1
+ if len(buf) < pos + self.getLength():
+ return -1
+ self.clear()
+ self.PlayerIDA, pos = CommFunc.ReadDWORD(buf, pos)
+ self.PlayerIDB, pos = CommFunc.ReadDWORD(buf, pos)
+ self.NewMarryTime, pos = CommFunc.ReadDWORD(buf, pos)
+ self.MarryTime, pos = CommFunc.ReadDWORD(buf, pos)
+ self.BridePriceState, pos = CommFunc.ReadDWORD(buf, pos)
+ self.BreakRequestID, pos = CommFunc.ReadDWORD(buf, pos)
+ self.BreakRequestTime, pos = CommFunc.ReadDWORD(buf, pos)
+ self.BreakRequestTimeA, pos = CommFunc.ReadDWORD(buf, pos)
+ self.BreakRequestTimeB, pos = CommFunc.ReadDWORD(buf, pos)
+ return self.getLength()
+
+
+ def getBuffer(self):
+ buf = create_string_buffer(self.getLength())
+ memmove(addressof(buf), addressof(self), self.getLength())
+ return string_at(addressof(buf), self.getLength())
+
+ def getLength(self):
+ return sizeof(tagDBPyCouple)
+
+ def outputString(self):
+ output = '''// 伴侣表 #tagDBPyCouple:
+ PlayerIDA = %s,
+ PlayerIDB = %s,
+ NewMarryTime = %s,
+ MarryTime = %s,
+ BridePriceState = %s,
+ BreakRequestID = %s,
+ BreakRequestTime = %s,
+ BreakRequestTimeA = %s,
+ BreakRequestTimeB = %s,
+ ADOResult = %s,
+ '''%(
+ self.PlayerIDA,
+ self.PlayerIDB,
+ self.NewMarryTime,
+ self.MarryTime,
+ self.BridePriceState,
+ self.BreakRequestID,
+ self.BreakRequestTime,
+ self.BreakRequestTimeA,
+ self.BreakRequestTimeB,
+ self.ADOResult,
+ )
+ return output
+
--
Gitblit v1.8.0