From b2e2ebd12c8d1754ebfcee7f38f59f68b25c91c8 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 07 一月 2019 17:07:27 +0800
Subject: [PATCH] 5730 【后端】【1.5】时装功能开发

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py |   35 +++++++++++++++++++----------------
 1 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index b085017..c16f2b3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -23995,7 +23995,6 @@
                   ("SubCmd", c_ubyte),
                   ("CoatIndex", c_int),    #时装索引
                   ("CoatLV", c_ubyte),    #时装等级
-                  ("CoatExp", c_int),    #时装祝福值经验
                   ]
 
     def __init__(self):
@@ -24014,7 +24013,6 @@
         self.SubCmd = 0x02
         self.CoatIndex = 0
         self.CoatLV = 0
-        self.CoatExp = 0
         return
 
     def GetLength(self):
@@ -24028,23 +24026,22 @@
                                 Cmd:%s,
                                 SubCmd:%s,
                                 CoatIndex:%d,
-                                CoatLV:%d,
-                                CoatExp:%d
+                                CoatLV:%d
                                 '''\
                                 %(
                                 self.Cmd,
                                 self.SubCmd,
                                 self.CoatIndex,
-                                self.CoatLV,
-                                self.CoatExp
+                                self.CoatLV
                                 )
         return DumpString
 
 
 class  tagMCClothesCoatSkinState(Structure):
     Head = tagHead()
-    SkinOpenState = 0    #(DWORD SkinOpenState)//时装激活状态, 按索引表示激活状态
-    CoatNum = 0    #(BYTE CoatNum)//时装个数
+    CoatChestLV = 0    #(DWORD CoatChestLV)//时装柜等级
+    CoatChestExp = 0    #(DWORD CoatChestExp)//时装柜经验
+    CoatNum = 0    #(WORD CoatNum)//时装个数
     CoatInfoList = list()    #(vector<tagMCClothesCoatLVInfo> CoatInfoList)// 时装数据列表
     data = None
 
@@ -24057,8 +24054,9 @@
     def ReadData(self, _lpData, _pos=0, _Len=0):
         self.Clear()
         _pos = self.Head.ReadData(_lpData, _pos)
-        self.SkinOpenState,_pos = CommFunc.ReadDWORD(_lpData, _pos)
-        self.CoatNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
+        self.CoatChestLV,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+        self.CoatChestExp,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+        self.CoatNum,_pos = CommFunc.ReadWORD(_lpData, _pos)
         for i in range(self.CoatNum):
             temCoatInfoList = tagMCClothesCoatLVInfo()
             _pos = temCoatInfoList.ReadData(_lpData, _pos)
@@ -24070,7 +24068,8 @@
         self.Head.Clear()
         self.Head.Cmd = 0xB1
         self.Head.SubCmd = 0x02
-        self.SkinOpenState = 0
+        self.CoatChestLV = 0
+        self.CoatChestExp = 0
         self.CoatNum = 0
         self.CoatInfoList = list()
         return
@@ -24079,7 +24078,8 @@
         length = 0
         length += self.Head.GetLength()
         length += 4
-        length += 1
+        length += 4
+        length += 2
         for i in range(self.CoatNum):
             length += self.CoatInfoList[i].GetLength()
 
@@ -24088,8 +24088,9 @@
     def GetBuffer(self):
         data = ''
         data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
-        data = CommFunc.WriteDWORD(data, self.SkinOpenState)
-        data = CommFunc.WriteBYTE(data, self.CoatNum)
+        data = CommFunc.WriteDWORD(data, self.CoatChestLV)
+        data = CommFunc.WriteDWORD(data, self.CoatChestExp)
+        data = CommFunc.WriteWORD(data, self.CoatNum)
         for i in range(self.CoatNum):
             data = CommFunc.WriteString(data, self.CoatInfoList[i].GetLength(), self.CoatInfoList[i].GetBuffer())
         return data
@@ -24097,13 +24098,15 @@
     def OutputString(self):
         DumpString = '''
                                 Head:%s,
-                                SkinOpenState:%d,
+                                CoatChestLV:%d,
+                                CoatChestExp:%d,
                                 CoatNum:%d,
                                 CoatInfoList:%s
                                 '''\
                                 %(
                                 self.Head.OutputString(),
-                                self.SkinOpenState,
+                                self.CoatChestLV,
+                                self.CoatChestExp,
                                 self.CoatNum,
                                 "..."
                                 )

--
Gitblit v1.8.0