add block.properties, item.properties (experimental)

This commit is contained in:
MihailRis
2024-11-22 11:08:36 +03:00
parent b40c8c4b4c
commit cd630463b3
4 changed files with 31 additions and 0 deletions
+3
View File
@@ -3,6 +3,7 @@
#include <glm/glm.hpp>
#include <string>
#include "data/dv.hpp"
#include "typedefs.hpp"
struct item_funcs_set {
@@ -25,6 +26,8 @@ struct ItemDef {
/// @brief Item name will shown in inventory
std::string caption;
dv::value properties = nullptr;
itemcount_t stackSize = 64;
bool generated = false;
uint8_t emission[4] {0, 0, 0, 0};