mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
added description to item
This commit is contained in:
parent
b4b49ccd83
commit
21364af7a3
4 changed files with 41 additions and 7 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
ItemDef::ItemDef(const std::string& name) : name(name) {
|
||||
caption = util::id_to_caption(name);
|
||||
description = "";
|
||||
}
|
||||
void ItemDef::cloneTo(ItemDef& dst) {
|
||||
dst.caption = caption;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ struct ItemDef {
|
|||
/// @brief Item name will shown in inventory
|
||||
std::string caption;
|
||||
|
||||
/// @brief Item description will shown in inventory
|
||||
std::string description;
|
||||
|
||||
dv::value properties = nullptr;
|
||||
|
||||
/// @brief Item max stack size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue