ManaPlus
Functions
EAthena::AuctionRecv Namespace Reference

Functions

void processOpenWindow (Net::MessageIn &msg)
 
void processAuctionResults (Net::MessageIn &msg)
 
void processAuctionSetItem (Net::MessageIn &msg)
 
void processAuctionMessage (Net::MessageIn &msg)
 
void processAuctionClose (Net::MessageIn &msg)
 

Function Documentation

◆ processAuctionClose()

void EAthena::AuctionRecv::processAuctionClose ( Net::MessageIn msg)

Definition at line 80 of file auctionrecv.cpp.

81 {
83  msg.readInt16("flag");
84 }
#define UNIMPLEMENTEDPACKET
Definition: logger.h:56
bool msg(InputEvent &event)
Definition: chat.cpp:39

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processAuctionMessage()

void EAthena::AuctionRecv::processAuctionMessage ( Net::MessageIn msg)

Definition at line 74 of file auctionrecv.cpp.

75 {
77  msg.readUInt8("message");
78 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processAuctionResults()

void EAthena::AuctionRecv::processAuctionResults ( Net::MessageIn msg)

Definition at line 41 of file auctionrecv.cpp.

42 {
44  msg.readInt16("len");
45  msg.readInt32("pages");
46  const int itemCount = msg.readInt32("items count");
47  for (int f = 0; f < itemCount; f ++)
48  {
49  msg.readInt32("auction id");
50  msg.readString(24, "seller name");
51  msg.readInt16("item id"); // here item always 16 bit
52  msg.readInt32("auction type");
53  msg.readInt16("item amount"); // always 1
54  msg.readUInt8("identify");
55  msg.readUInt8("attribute");
56  msg.readUInt8("refine");
57  for (int d = 0; d < maxCards; d ++)
58  msg.readUInt16("card"); // here item always 16 bit
59  msg.readInt32("price");
60  msg.readInt32("buy now");
61  msg.readString(24, "buyer name");
62  msg.readInt32("timestamp");
63  // +++ need use ItemColorManager for color
64  }
65 }
#define maxCards
Definition: cards.h:25

References maxCards, Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processAuctionSetItem()

void EAthena::AuctionRecv::processAuctionSetItem ( Net::MessageIn msg)

Definition at line 67 of file auctionrecv.cpp.

68 {
70  msg.readInt16("index");
71  msg.readUInt8("flag");
72 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.

◆ processOpenWindow()

void EAthena::AuctionRecv::processOpenWindow ( Net::MessageIn msg)

Definition at line 35 of file auctionrecv.cpp.

36 {
38  msg.readInt32("flag"); // 0 - open, 1 - close
39 }

References Actions::msg(), and UNIMPLEMENTEDPACKET.