mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
add 'on_block_present' event
This commit is contained in:
parent
1c81f8b7ad
commit
ca3bc45d0f
7 changed files with 113 additions and 41 deletions
|
|
@ -25,10 +25,10 @@ struct AABB;
|
|||
namespace blocks_agent {
|
||||
|
||||
struct BlockRegisterEvent {
|
||||
static inline constexpr uint16_t REGISTER_UPDATING_BIT = 0x1;
|
||||
static inline constexpr uint16_t UNREGISTER_UPDATING_BIT = 0x2;
|
||||
static inline constexpr uint16_t PRESENT_EVENT_BIT = 0x4;
|
||||
uint16_t bits;
|
||||
static inline constexpr uint8_t REGISTER_BIT = 0x1;
|
||||
static inline constexpr uint8_t UPDATING_BIT = 0x2;
|
||||
static inline constexpr uint8_t PRESENT_EVENT_BIT = 0x4;
|
||||
uint8_t bits;
|
||||
blockid_t id;
|
||||
glm::ivec3 coord;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue