| | |
| | | _fields_ = [
|
| | | ('PlayerID', ctypes.c_ulong),
|
| | | ('TagID', ctypes.c_ulong),
|
| | | ('Intimacy', ctypes.c_ulong),
|
| | | ('ADOResult', ctypes.c_ulong),
|
| | | ]
|
| | |
|
| | |
| | | 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()
|
| | |
|
| | |
|
| | |
| | | output = '''//玩家好友表#tagDBPyPlayerFriend:
|
| | | PlayerID = %s,
|
| | | TagID = %s,
|
| | | Intimacy = %s,
|
| | | ADOResult = %s,
|
| | | '''%(
|
| | | self.PlayerID,
|
| | | self.TagID,
|
| | | self.Intimacy,
|
| | | self.ADOResult,
|
| | | )
|
| | | return output
|
| | |
| | | ('RealmLV', ctypes.c_ushort),
|
| | | ('OnlineType', ctypes.c_ubyte),
|
| | | ('RefCount', ctypes.c_ulong),
|
| | | ('CoupleID', ctypes.c_ulong),
|
| | | ('CoupleName', ctypes.c_char * 33),
|
| | | ('CouplePriceMaxID', ctypes.c_ubyte),
|
| | | ('CoupleBreakOffline', ctypes.c_ubyte),
|
| | | ('ADOResult', ctypes.c_ulong),
|
| | | ]
|
| | |
|
| | |
| | | self.RealmLV, pos = CommFunc.ReadWORD(buf, pos)
|
| | | self.OnlineType, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | self.RefCount, pos = CommFunc.ReadDWORD(buf, pos)
|
| | | self.CoupleID, pos = CommFunc.ReadDWORD(buf, pos)
|
| | | self.CoupleName, pos = CommFunc.ReadString(buf, pos, 33)
|
| | | self.CouplePriceMaxID, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | self.CoupleBreakOffline, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | return self.getLength()
|
| | |
|
| | |
|
| | |
| | | RealmLV = %s,
|
| | | OnlineType = %s,
|
| | | RefCount = %s,
|
| | | CoupleID = %s,
|
| | | CoupleName = %s,
|
| | | CouplePriceMaxID = %s,
|
| | | CoupleBreakOffline = %s,
|
| | | ADOResult = %s,
|
| | | '''%(
|
| | | self.PlayerID,
|
| | |
| | | self.RealmLV,
|
| | | self.OnlineType,
|
| | | self.RefCount,
|
| | | self.CoupleID,
|
| | | self.CoupleName,
|
| | | self.CouplePriceMaxID,
|
| | | self.CoupleBreakOffline,
|
| | | self.ADOResult,
|
| | | )
|
| | | return output
|
| | |
| | | else:
|
| | | self.PlayerName = Str[:33]
|
| | |
|
| | | def SetCoupleName(self,Str):
|
| | | if len(Str)<=33:
|
| | | self.CoupleName = Str
|
| | | else:
|
| | | self.CoupleName = Str[:33]
|
| | | |
| | |
|