50 const unsigned int n_items = (
msg.getLength() - 4U) / 11;
57 for (
unsigned int k = 0; k < n_items; k++)
59 const int value =
msg.readInt32(
"price");
60 msg.readInt32(
"dc value?");
62 const int itemId =
msg.readInt16(
"item id");
71 switch (
msg.readUInt8(
"result"))
91 const uint8_t response =
msg.readUInt8(
"response");
ShopItem * addItem(const int id, const ItemTypeT type, const ItemColor color, const int amount, const int price)
void setMoney(const int amount)
const std::string DEFAULT_CURRENCY
const ItemColor ItemColor_one
bool msg(InputEvent &event)
void notify(const unsigned int message)
@ BUY_FAILED_TOO_MANY_ITEMS
int32_t getAttribute(const AttributesT id)
void processNpcBuyResponse(Net::MessageIn &msg)
void processNpcSellResponse(Net::MessageIn &msg)
void processNpcBuy(Net::MessageIn &msg)