| | |
| | | ('ItemGUID', ctypes.c_char * 40),
|
| | | ('PlayerID', ctypes.c_ulong),
|
| | | ('ItemTypeID', ctypes.c_ulong),
|
| | | ('Count', ctypes.c_ushort),
|
| | | ('Count', ctypes.c_ulong),
|
| | | ('IsLocked', ctypes.c_ubyte),
|
| | | ('ItemPlaceType', ctypes.c_ubyte),
|
| | | ('ItemPlaceIndex', ctypes.c_ushort),
|
| | |
| | | self.ItemGUID, pos = CommFunc.ReadString(buf, pos, 40)
|
| | | self.PlayerID, pos = CommFunc.ReadDWORD(buf, pos)
|
| | | self.ItemTypeID, pos = CommFunc.ReadDWORD(buf, pos)
|
| | | self.Count, pos = CommFunc.ReadWORD(buf, pos)
|
| | | self.Count, pos = CommFunc.ReadDWORD(buf, pos)
|
| | | self.IsLocked, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | self.ItemPlaceType, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | self.ItemPlaceIndex, pos = CommFunc.ReadWORD(buf, pos)
|
| | |
| | | buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 40, self.ItemGUID)
|
| | | buf = CommFunc.WriteDWORD(buf, self.PlayerID)
|
| | | buf = CommFunc.WriteDWORD(buf, self.ItemTypeID)
|
| | | buf = CommFunc.WriteWORD(buf, self.Count)
|
| | | buf = CommFunc.WriteDWORD(buf, self.Count)
|
| | | buf = CommFunc.WriteBYTE(buf, self.IsLocked)
|
| | | buf = CommFunc.WriteBYTE(buf, self.ItemPlaceType)
|
| | | buf = CommFunc.WriteWORD(buf, self.ItemPlaceIndex)
|
| | |
| | | length += sizeof(ctypes.c_char) * 40
|
| | | length += sizeof(ctypes.c_ulong)
|
| | | length += sizeof(ctypes.c_ulong)
|
| | | length += sizeof(ctypes.c_ushort)
|
| | | length += sizeof(ctypes.c_ulong)
|
| | | length += sizeof(ctypes.c_ubyte)
|
| | | length += sizeof(ctypes.c_ubyte)
|
| | | length += sizeof(ctypes.c_ushort)
|
| | |
| | | self.CreateTime = Str
|
| | | else:
|
| | | self.CreateTime = Str[:30]
|
| | | |
| | |
|
| | |
|
| | |
|