ManaPlus
Functions | Variables
EAthena::BarterRecv Namespace Reference

Functions

void processOpenShop (Net::MessageIn &msg)
 

Variables

BuyDialogmBuyDialog = 0
 

Function Documentation

◆ processOpenShop()

void EAthena::BarterRecv::processOpenShop ( Net::MessageIn msg)

Definition at line 39 of file barterrecv.cpp.

40 {
41  const int count = (msg.readInt16("len") - 4) / (itemIdLen * 2 + 17);
42  for (int f = 0; f < count; f ++)
43  {
44  msg.readItemId("item id");
45  msg.readUInt8("item type");
46  msg.readInt32("amount");
47  msg.readItemId("currency item id");
48  msg.readInt32("currency amount");
49  msg.readInt32("weight");
50  msg.readInt32("shop index");
51  }
52 }
int itemIdLen
Definition: client.cpp:130
bool msg(InputEvent &event)
Definition: chat.cpp:39

References itemIdLen, and Actions::msg().

Variable Documentation

◆ mBuyDialog

BuyDialog * EAthena::BarterRecv::mBuyDialog = 0

Definition at line 35 of file barterrecv.cpp.

Referenced by EAthena::BarterHandler::BarterHandler().