mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Minor item refactor
This commit is contained in:
parent
b5739c678f
commit
c9576f1fc4
3 changed files with 7 additions and 4 deletions
|
|
@ -4,7 +4,6 @@
|
|||
#include <string>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "../graphics/UVRegion.h"
|
||||
#include "../typedefs.h"
|
||||
|
||||
struct item_funcs_set {
|
||||
|
|
@ -26,12 +25,12 @@ public:
|
|||
item_icon_type iconType = item_icon_type::sprite;
|
||||
std::string icon = "block:notfound";
|
||||
|
||||
std::string placingBlock = "none";
|
||||
std::string placingBlock = "core:air";
|
||||
|
||||
struct {
|
||||
itemid_t id;
|
||||
item_funcs_set funcsset {};
|
||||
UVRegion iconRegion {0, 0, 1, 1};
|
||||
blockid_t placingBlock;
|
||||
} rt;
|
||||
|
||||
ItemDef(std::string name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue