59 const int n_items = (
msg.getLength() - 4) / sz;
68 currency =
info->getCurrency();
83 for (
int k = 0; k < n_items; k++)
85 const int value =
msg.readInt32(
"price");
86 msg.readInt32(
"dc value?");
88 msg.readUInt8(
"type"));
89 const int itemId =
msg.readItemId(
"item id");
98 switch (
msg.readUInt8(
"result"))
118 const uint8_t response =
msg.readUInt8(
"response");
const BeingTypeId BeingTypeId_zero
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)
bool info(InputEvent &event)
void processNpcBuyResponse(Net::MessageIn &msg)
void processNpcBuy(Net::MessageIn &msg)
void processNpcSellResponse(Net::MessageIn &msg)
BeingInfo * get(const BeingTypeId id)
void notify(const unsigned int message)
@ BUY_FAILED_TOO_MANY_ITEMS
int32_t getAttribute(const AttributesT id)