#pragma once #include #include "item.h" struct InventorySlot { int itemId = 0; int count = 0; }; class Inventory { public: std::vector items; void addItem(int itemId, int count = 1); bool removeItem(int itemId, int count = 1); void show(const std::vector& itemDatabase) const; bool hasItem(int itemId) const; };