Добавлена система сохранений

This commit is contained in:
DeLiss
2026-06-11 13:20:44 +05:00
parent 1ecf70937d
commit f641112a2d
7 changed files with 143 additions and 3 deletions

View File

@@ -9,6 +9,8 @@ struct InventorySlot {
class Inventory {
public:
std::vector<InventorySlot> items;
void addItem(int itemId, int count = 1);
bool removeItem(int itemId, int count = 1);
@@ -16,6 +18,5 @@ public:
bool hasItem(int itemId) const;
private:
std::vector<InventorySlot> items;
};