feature: bone model overriding

This commit is contained in:
MihailRis
2024-07-16 10:00:40 +03:00
parent 4a0bc016ce
commit d5877a342f
7 changed files with 74 additions and 33 deletions
+2
View File
@@ -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);
};