Working on inventory
This commit is contained in:
1 parent
dda9f34277
commit
90c57932ec
16 files changed
+617
-399
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user