57 const STD_VECTOR<ShopItem*> &items)
const
63 outMsg.writeInt32(maxMoney,
"limit money");
64 outMsg.writeInt8(
static_cast<int8_t
>(flag),
"flag");
65 outMsg.writeString(name, 80,
"store name");
66 FOR_EACH (STD_VECTOR<ShopItem*>::const_iterator, it, items)
69 outMsg.writeItemId(item->
getId(),
"item id");
71 outMsg.writeInt32(item->
getPrice(),
"price");
90 outMsg.writeBeingId(being->
getId(),
"account id");
95 const Item *
const item,
96 const int amount)
const
98 if ((being ==
nullptr) || (item ==
nullptr))
104 outMsg.writeInt16(18,
"len");
105 outMsg.writeBeingId(being->
getId(),
"account id");
106 outMsg.writeInt32(storeId,
"store id");
110 outMsg.writeItemId(item->
getId(),
"item id");
111 outMsg.writeInt16(
CAST_S16(amount),
"amount");
Net::BuyingStoreHandler * buyingStoreHandler
void sell(const Being *const being, const int storeId, const Item *const item, const int amount) const
void open(const Being *const being) const
void create(const std::string &name, const int maxMoney, const bool flag, const std::vector< ShopItem * > &items) const
static const int INVENTORY_OFFSET
#define FOR_EACH(type, iter, array)
#define createOutPacket(name)
void enableVending(const bool b)