blocks and items 'caption' property
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#include "ItemDef.h"
|
||||
#include "../util/stringutil.h"
|
||||
|
||||
ItemDef::ItemDef(std::string name) : name(name) {
|
||||
caption = util::id_to_caption(name);
|
||||
}
|
||||
|
||||
@@ -21,8 +21,12 @@ enum class item_icon_type {
|
||||
|
||||
class ItemDef {
|
||||
public:
|
||||
/// @brief Item string id (with prefix included)
|
||||
std::string const name;
|
||||
|
||||
/// @brief Item name will shown in inventory
|
||||
std::string caption;
|
||||
|
||||
itemcount_t stackSize = 64;
|
||||
bool generated = false;
|
||||
uint8_t emission[4] {0, 0, 0, 0};
|
||||
|
||||
Reference in New Issue
Block a user