51 namespace InventoryRecv
62 BLOCK_START(
"InventoryRecv::processItemUseResponse")
67 const int amount =
msg.readInt16(
"amount");
69 if (
msg.readUInt8(
"result") == 0)
75 if (inventory !=
nullptr)
80 item->setQuantity(amount);
86 BLOCK_END(
"InventoryRecv::processItemUseResponse")
91 BLOCK_START(
"InventoryRecv::processPlayerStorageStatus")
97 msg.readInt16(
"used count");
98 const int size =
msg.readInt16(
"max size");
123 BLOCK_END(
"InventoryRecv::processPlayerStorageStatus")
128 BLOCK_START(
"InventoryRecv::processPlayerStorageClose")
142 BLOCK_END(
"InventoryRecv::processPlayerStorageClose")
147 BLOCK_START(
"InventoryRecv::processPlayerAttackRange")
148 const int range =
msg.readInt16(
"range");
157 BLOCK_END(
"InventoryRecv::processPlayerAttackRange")
162 BLOCK_START(
"InventoryRecv::processPlayerArrowEquip")
163 int index =
msg.readInt16(
"index");
170 BLOCK_END(
"InventoryRecv::processPlayerArrowEquip")
static void distributeEvent()
void setAttackRange(const int range)
void setEquipment(const int index, const int inventoryIndex)
void removeItemAt(const int index)
Item * getItem(const int index) const
virtual void setItem(const int index, const int id, const ItemTypeT type, const int quantity, const uint8_t refine, const ItemColor color, const Identified identified, const Damaged damaged, const Favorite favorite, const Equipm equipment, const Equipped equipped)
virtual int getProjectileSlot() const =0
static const int INVENTORY_OFFSET
const bool Equipped_false
#define FOR_EACH(type, iter, array)
Net::InventoryHandler * inventoryHandler
InventoryWindow * storageWindow
LocalPlayer * localPlayer
bool msg(InputEvent &event)
void processPlayerArrowEquip(Net::MessageIn &msg)
void processPlayerStorageStatus(Net::MessageIn &msg)
void processPlayerAttackRange(Net::MessageIn &msg)
void processItemUseResponse(Net::MessageIn &msg)
void processPlayerStorageClose(Net::MessageIn &msg)
InventoryItems mStorageItems
std::queue< BeingId > PickupQueue
std::vector< InventoryItem > InventoryItems
void notify(const unsigned int message)
Inventory * getInventory()
void setStatMod(const AttributesT id, const int value, const Notify notify)
void setStatBase(const AttributesT id, const int value, const Notify notify)
#define BLOCK_START(name)