From 62134a5a51fc9742512f97e6994c8920adb8d7f5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 20 二月 2019 17:12:34 +0800
Subject: [PATCH] 6250 【后端】【2.0】拍卖行开发单(拍卖物品表修改)

---
 ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
index 5141fb0..7f461cc 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
@@ -138,8 +138,9 @@
         ('BidderID', ctypes.c_ulong),
         ('BidderName', ctypes.c_char * 33),
         ('BidderPrice', ctypes.c_ulong),
-        ('ItemType', ctypes.c_ulong),
-        ('ItemJobLimit', ctypes.c_ulong),
+        ('ItemType', ctypes.c_ubyte),
+        ('ItemJobLimit', ctypes.c_ubyte),
+        ('ItemClassLV', ctypes.c_ubyte),
         ('UserDataLen', ctypes.c_ushort),
         ('UserData', ctypes.c_char_p),
         ('FamilyPlayerIDLen', ctypes.c_ushort),
@@ -164,6 +165,7 @@
         self.BidderPrice = 0
         self.ItemType = 0
         self.ItemJobLimit = 0
+        self.ItemClassLV = 0
         self.UserDataLen = 0
         self.UserData = ''
         self.FamilyPlayerIDLen = 0
@@ -185,8 +187,9 @@
         self.BidderID, pos = CommFunc.ReadDWORD(buf, pos)
         self.BidderName, pos = CommFunc.ReadString(buf, pos, 33)
         self.BidderPrice, pos = CommFunc.ReadDWORD(buf, pos)
-        self.ItemType, pos = CommFunc.ReadDWORD(buf, pos)
-        self.ItemJobLimit, pos = CommFunc.ReadDWORD(buf, pos)
+        self.ItemType, pos = CommFunc.ReadBYTE(buf, pos)
+        self.ItemJobLimit, pos = CommFunc.ReadBYTE(buf, pos)
+        self.ItemClassLV, pos = CommFunc.ReadBYTE(buf, pos)
         self.UserDataLen, pos = CommFunc.ReadWORD(buf, pos)
         tmp, pos = CommFunc.ReadString(buf, pos, self.UserDataLen)
         self.UserData = ctypes.c_char_p(tmp)
@@ -207,8 +210,9 @@
         buf = CommFunc.WriteDWORD(buf, self.BidderID)
         buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 33, self.BidderName)
         buf = CommFunc.WriteDWORD(buf, self.BidderPrice)
-        buf = CommFunc.WriteDWORD(buf, self.ItemType)
-        buf = CommFunc.WriteDWORD(buf, self.ItemJobLimit)
+        buf = CommFunc.WriteBYTE(buf, self.ItemType)
+        buf = CommFunc.WriteBYTE(buf, self.ItemJobLimit)
+        buf = CommFunc.WriteBYTE(buf, self.ItemClassLV)
         buf = CommFunc.WriteWORD(buf, self.UserDataLen)
         buf = CommFunc.WriteString(buf, self.UserDataLen, self.UserData)
         buf = CommFunc.WriteWORD(buf, self.FamilyPlayerIDLen)
@@ -227,8 +231,9 @@
         length += sizeof(ctypes.c_ulong)
         length += sizeof(ctypes.c_char) * 33
         length += sizeof(ctypes.c_ulong)
-        length += sizeof(ctypes.c_ulong)
-        length += sizeof(ctypes.c_ulong)
+        length += sizeof(ctypes.c_ubyte)
+        length += sizeof(ctypes.c_ubyte)
+        length += sizeof(ctypes.c_ubyte)
         length += sizeof(ctypes.c_ushort)
         length += self.UserDataLen
         length += sizeof(ctypes.c_ushort)
@@ -249,6 +254,7 @@
             BidderPrice = %s,
             ItemType = %s,
             ItemJobLimit = %s,
+            ItemClassLV = %s,
             UserDataLen = %s,
             UserData = %s,
             FamilyPlayerIDLen = %s,
@@ -267,6 +273,7 @@
                 self.BidderPrice,
                 self.ItemType,
                 self.ItemJobLimit,
+                self.ItemClassLV,
                 self.UserDataLen,
                 self.UserData,
                 self.FamilyPlayerIDLen,

--
Gitblit v1.8.0