Добавлен инвентарь, в сундуках могут содержаться предметы.

This commit is contained in:
DeLiss
2026-06-11 12:05:36 +05:00
parent cba2274630
commit 5d4940f754
12 changed files with 312 additions and 8 deletions

18
include/item.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <string>
enum class ItemType {
Potion,
Weapon,
Unknown
};
struct Item {
int id = 0;
std::string name;
std::string description;
ItemType type = ItemType::Unknown;
int heal = 0;
int damage = 0;
};