55 const int amount)
const
61 outMsg.writeInt32(points,
"points");
62 outMsg.writeInt16(1,
"count");
63 outMsg.writeInt16(
CAST_S16(amount),
"amount");
64 outMsg.writeItemId(itemId,
"item id");
68 const STD_VECTOR<ShopItem*> &items)
const
76 FOR_EACH (STD_VECTOR<ShopItem*>::const_iterator, it, items)
81 if (usedQuantity == 0)
100 outMsg.writeInt16(
CAST_S16(10 + pairSize * cnt),
"len");
101 outMsg.writeInt32(points,
"points");
102 outMsg.writeInt16(
CAST_S16(cnt),
"count");
103 FOR_EACH (STD_VECTOR<ShopItem*>::const_iterator, it, items)
107 if (usedQuantity == 0)
118 for (
int f = 0; f < usedQuantity; f ++)
120 outMsg.writeInt16(
CAST_S16(1),
"amount");
121 outMsg.writeItemId(item->
getId(),
127 outMsg.writeInt16(
CAST_S16(usedQuantity),
"amount");
128 outMsg.writeItemId(item->
getId(),
"item id");
155 outMsg.writeInt16(
CAST_S16(tab),
"tab");
Net::CashShopHandler * cashShopHandler
void buyItems(const int points, const std::vector< ShopItem * > &items) const
void requestPoints() const
void requestTab(const int tab) const
void buyItem(const int points, const int itemId, const ItemColor color, const int amount) const
ItemTypeT getType() const
void increaseQuantity(const int amount)
void increaseUsedQuantity(const int amount)
int getUsedQuantity() const
#define FOR_EACH(type, iter, array)
#define createOutPacket(name)