77 FOR_EACH (STD_VECTOR<ShopItem*>::const_iterator, it, items)
82 if (usedQuantity == 0)
101 outMsg.writeInt16(
CAST_S16(4 + pairSize * cnt),
"len");
102 FOR_EACH (STD_VECTOR<ShopItem*>::const_iterator, it, items)
106 if (usedQuantity == 0)
117 for (
int f = 0; f < usedQuantity; f ++)
119 outMsg.writeItemId(item->
getId(),
121 outMsg.writeInt32(
CAST_S16(1),
"amount");
123 outMsg.writeInt16(0,
"inv index");
130 outMsg.writeItemId(item->
getId(),
132 outMsg.writeInt32(
CAST_S16(usedQuantity),
"amount");
134 outMsg.writeInt16(0,
"inv index");
Net::BarterHandler * barterHandler
void buyItems(const std::vector< ShopItem * > &items) const
ItemTypeT getType() const
void increaseQuantity(const int amount)
int getCurrentInvIndex() const
void increaseUsedQuantity(const int amount)
int getUsedQuantity() const
#define FOR_EACH(type, iter, array)
#define createOutPacket(name)