From 631cfe043789ddc76ddfbe19e0d01e21e26b5fbb Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 29 十一月 2018 01:35:03 +0800
Subject: [PATCH] 5027 法宝副本里上线副本结束则T人
---
ServerPython/CoreServerGroup/GameServer/Script/ChGameToMapPyPack.py | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChGameToMapPyPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChGameToMapPyPack.py
index c47d050..7aea670 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/ChGameToMapPyPack.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/ChGameToMapPyPack.py
@@ -101,6 +101,66 @@
return DumpString
#------------------------------------------------------
+# 05 03 玩家离开队伍 #tagGMPlayerLeaveTeam
+
+class tagGMPlayerLeaveTeam(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ("Cmd", c_ubyte),
+ ("SubCmd", c_ubyte),
+ ("PlayerID", c_int),
+ ("CopyMapID", c_int),
+ ("TeamID", c_int),
+ ]
+
+ def __init__(self):
+ self.Clear()
+ self.Cmd = 0x05
+ self.SubCmd = 0x03
+ return
+
+ def ReadData(self, stringData, _pos=0, _len=0):
+ self.Clear()
+ memmove(addressof(self), stringData[_pos:], self.GetLength())
+ return _pos + self.GetLength()
+
+ def Clear(self):
+ self.Cmd = 0x05
+ self.SubCmd = 0x03
+ self.PlayerID = 0
+ self.CopyMapID = 0
+ self.TeamID = 0
+ return
+
+ def GetLength(self):
+ return sizeof(tagGMPlayerLeaveTeam)
+
+ def GetBuffer(self):
+ return string_at(addressof(self), self.GetLength())
+
+ def OutputString(self):
+ DumpString = '''// 05 03 玩家离开队伍 //tagGMPlayerLeaveTeam:
+ Cmd:%s,
+ SubCmd:%s,
+ PlayerID:%d,
+ CopyMapID:%d,
+ TeamID:%d
+ '''\
+ %(
+ self.Cmd,
+ self.SubCmd,
+ self.PlayerID,
+ self.CopyMapID,
+ self.TeamID
+ )
+ return DumpString
+
+
+m_NAtagGMPlayerLeaveTeam=tagGMPlayerLeaveTeam()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGMPlayerLeaveTeam.Cmd,m_NAtagGMPlayerLeaveTeam.SubCmd))] = m_NAtagGMPlayerLeaveTeam
+
+
+#------------------------------------------------------
# 05 02 队伍信息刷新 #tagGMTeamInfo
class tagGMTeamMemInfo(Structure):
--
Gitblit v1.8.0