59 const int len = (
msg.readInt16(
"len") - 4) / (11 +
itemIdLen);
68 currency =
info->getCurrency();
82 for (
int f = 0; f < len; f ++)
84 const int itemId =
msg.readItemId(
"item id");
86 const int value =
msg.readInt32(
"price");
87 const int amount =
msg.readInt32(
"amount");
88 msg.readInt16(
"weight");
97 const int len = (
msg.readInt16(
"len") - 5) / (6 +
itemIdLen);
98 const int res =
msg.readUInt8(
"result");
99 for (
int f = 0; f < len; f ++)
101 msg.readItemId(
"item id");
102 msg.readInt16(
"amount");
103 msg.readInt32(
"price");
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
#define fromInt(val, name)
const ItemColor ItemColor_one
bool msg(InputEvent &event)
bool info(InputEvent &event)
void processMarketOpen(Net::MessageIn &msg)
void processMarketBuyAck(Net::MessageIn &msg)
BeingInfo * get(const BeingTypeId id)
void notify(const unsigned int message)
int32_t getAttribute(const AttributesT id)