mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
feat: make Decorator listen to block interactions
This commit is contained in:
parent
f5bc6fc136
commit
77ae35e364
5 changed files with 36 additions and 21 deletions
|
|
@ -20,7 +20,7 @@ enum class BlockInteraction { step, destruction, placing };
|
|||
|
||||
/// @brief Player argument is nullable
|
||||
using on_block_interaction = std::function<
|
||||
void(Player*, glm::ivec3, const Block&, BlockInteraction type)>;
|
||||
void(Player*, const glm::ivec3&, const Block&, BlockInteraction type)>;
|
||||
|
||||
/// BlocksController manages block updates and data (inventories, metadata)
|
||||
class BlocksController {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue