| | |
| | | ('Job', ctypes.c_ubyte),
|
| | | ('LV', ctypes.c_ushort),
|
| | | ('RealmLV', ctypes.c_ubyte),
|
| | | ('AssistType', ctypes.c_ubyte),
|
| | | ('MapID', ctypes.c_ulong),
|
| | | ('LineID', ctypes.c_ulong),
|
| | | ('NPCID', ctypes.c_ulong),
|
| | |
| | | self.Job = 0
|
| | | self.LV = 0
|
| | | self.RealmLV = 0
|
| | | self.AssistType = 0
|
| | | self.MapID = 0
|
| | | self.LineID = 0
|
| | | self.NPCID = 0
|
| | |
| | | self.Job, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | self.LV, pos = CommFunc.ReadWORD(buf, pos)
|
| | | self.RealmLV, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | self.AssistType, pos = CommFunc.ReadBYTE(buf, pos)
|
| | | self.MapID, pos = CommFunc.ReadDWORD(buf, pos)
|
| | | self.LineID, pos = CommFunc.ReadDWORD(buf, pos)
|
| | | self.NPCID, pos = CommFunc.ReadDWORD(buf, pos)
|
| | |
| | | buf = CommFunc.WriteBYTE(buf, self.Job)
|
| | | buf = CommFunc.WriteWORD(buf, self.LV)
|
| | | buf = CommFunc.WriteBYTE(buf, self.RealmLV)
|
| | | buf = CommFunc.WriteBYTE(buf, self.AssistType)
|
| | | buf = CommFunc.WriteDWORD(buf, self.MapID)
|
| | | buf = CommFunc.WriteDWORD(buf, self.LineID)
|
| | | buf = CommFunc.WriteDWORD(buf, self.NPCID)
|
| | |
| | | length += sizeof(ctypes.c_char) * 33
|
| | | length += sizeof(ctypes.c_ubyte)
|
| | | length += sizeof(ctypes.c_ushort)
|
| | | length += sizeof(ctypes.c_ubyte)
|
| | | length += sizeof(ctypes.c_ubyte)
|
| | | length += sizeof(ctypes.c_ulong)
|
| | | length += sizeof(ctypes.c_ulong)
|
| | |
| | | Job = %s,
|
| | | LV = %s,
|
| | | RealmLV = %s,
|
| | | AssistType = %s,
|
| | | MapID = %s,
|
| | | LineID = %s,
|
| | | NPCID = %s,
|
| | |
| | | self.Job,
|
| | | self.LV,
|
| | | self.RealmLV,
|
| | | self.AssistType,
|
| | | self.MapID,
|
| | | self.LineID,
|
| | | self.NPCID,
|