mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
move block ticks register to separate script
This commit is contained in:
parent
9653b18143
commit
473f9f1a6a
6 changed files with 109 additions and 92 deletions
|
|
@ -25,11 +25,10 @@ struct AABB;
|
|||
namespace blocks_agent {
|
||||
|
||||
struct BlockRegisterEvent {
|
||||
enum class Type : uint16_t {
|
||||
REGISTER_UPDATING,
|
||||
UNREGISTER_UPDATING,
|
||||
};
|
||||
Type type;
|
||||
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;
|
||||
blockid_t id;
|
||||
glm::ivec3 coord;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue