diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-04 10:09:35 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-05 09:45:58 +0100 |
commit | 2fd31f525e28f88ef84179be4735da5115a0a0ee (patch) | |
tree | 3ee4a7aa91e8fd1c074bfdf90b948478eddc73e1 /src/client/camera.h | |
parent | 0d94a5e581d8338cb02af8a250623617f1cb6b7d (diff) | |
download | minetest-wield_animation.tar.xz |
Different animations for different actionswield_animation
Diffstat (limited to 'src/client/camera.h')
-rw-r--r-- | src/client/camera.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/camera.h b/src/client/camera.h index df156f06d..b5c4850ab 100644 --- a/src/client/camera.h +++ b/src/client/camera.h @@ -193,6 +193,8 @@ public: inline void addArmInertia(f32 player_yaw); + const WieldAnimation &getCurrentWieldAnimation(); + private: // Nodes scene::ISceneNode *m_playernode = nullptr; @@ -254,7 +256,10 @@ private: // If 0, left-click digging animation // If 1, right-click digging animation s32 m_digging_button = -1; - std::string m_wield_animation = ""; + std::string m_wield_animation_base = ""; + std::string m_wield_animation_dig = ""; + std::string m_wield_animation_place = ""; + std::string m_wield_animation_activate = ""; // Animation when changing wielded item f32 m_wield_change_timer = 0.125f; |