mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Generated items
This commit is contained in:
parent
e4f7b6d97c
commit
dd5cd55aeb
5 changed files with 75 additions and 28 deletions
|
|
@ -6,13 +6,26 @@
|
|||
|
||||
#include "../typedefs.h"
|
||||
|
||||
#define BLOCK_ITEM_SUFFIX ".item"
|
||||
|
||||
struct item_funcs_set {
|
||||
bool init: 1;
|
||||
};
|
||||
|
||||
enum class item_icon_type {
|
||||
sprite, block,
|
||||
};
|
||||
|
||||
class ItemDef {
|
||||
public:
|
||||
std::string name;
|
||||
std::string const name;
|
||||
|
||||
bool generated = false;
|
||||
|
||||
item_icon_type iconType = item_icon_type::sprite;
|
||||
std::string icon = "block:notfound";
|
||||
|
||||
std::string placingBlock = "none";
|
||||
|
||||
struct {
|
||||
itemid_t id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue