Working on inventory

This commit is contained in:
Vladislav Khorev committed 2026-05-28 17:16:10 +03:00
1 parent dda9f34277
commit 90c57932ec
16 files changed
+617 -399

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ namespace ZL {
std::string name;
std::string description;
std::string icon;
std::string selectedIcon;
Item() = default;
Item(const std::string& _id, const std::string& _name, const std::string& _desc, const std::string& _icon)
+1
View File
@@ -54,6 +54,7 @@ void ItemRegistry::loadFromJson(const std::string& jsonPath, const std::string&
entry.value("description", ""),
entry.value("icon", "")
);
item.selectedIcon = entry.value("selectedIcon", "");
items_[id] = std::move(item);
}