Добавлен инвентарь, в сундуках могут содержаться предметы.
This commit is contained in:
18
include/item.h
Normal file
18
include/item.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user