mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
Items intruduced (part II)
This commit is contained in:
parent
eae00dbb11
commit
b5739c678f
15 changed files with 62 additions and 40 deletions
|
|
@ -9,6 +9,8 @@
|
|||
#include "../maths/aabb.h"
|
||||
#include "../typedefs.h"
|
||||
|
||||
#define BLOCK_ITEM_SUFFIX ".item"
|
||||
|
||||
const uint FACE_MX = 0;
|
||||
const uint FACE_PX = 1;
|
||||
const uint FACE_MY = 2;
|
||||
|
|
@ -89,6 +91,7 @@ public:
|
|||
bool hidden = false;
|
||||
AABB hitbox;
|
||||
BlockRotProfile rotations;
|
||||
std::string pickingItem = name+BLOCK_ITEM_SUFFIX;
|
||||
|
||||
struct {
|
||||
blockid_t id;
|
||||
|
|
@ -96,6 +99,7 @@ public:
|
|||
bool emissive = false;
|
||||
AABB hitboxes[BlockRotProfile::MAX_COUNT];
|
||||
block_funcs_set funcsset {};
|
||||
itemid_t pickingItem = 0;
|
||||
} rt;
|
||||
|
||||
Block(std::string name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue