mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
feature: bone model overriding
This commit is contained in:
parent
4a0bc016ce
commit
d5877a342f
7 changed files with 74 additions and 33 deletions
|
|
@ -20,6 +20,7 @@ enum class BlockInteraction {
|
|||
placing
|
||||
};
|
||||
|
||||
/// @brief Player argument is nullable
|
||||
using on_block_interaction = std::function<void(
|
||||
Player*, glm::ivec3, const Block*, BlockInteraction type
|
||||
)>;
|
||||
|
|
@ -76,6 +77,7 @@ public:
|
|||
BlockInteraction type
|
||||
);
|
||||
|
||||
/// @brief Add block interaction callback
|
||||
void listenBlockInteraction(const on_block_interaction& callback);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue