diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-05-20 00:20:42 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-05-20 01:09:41 +0200 |
commit | 3e2efdf18ab95d3c88f66c7a1f6caf6b1c7231e5 (patch) | |
tree | 5840acc29c6b6ce7c0a9b5917bc75a0e8648ea24 /src/camera.h | |
parent | bc66f4632372e62be53f3b61cd5cc4a82ee44741 (diff) | |
download | hax-minetest-server-3e2efdf18ab95d3c88f66c7a1f6caf6b1c7231e5.tar.gz hax-minetest-server-3e2efdf18ab95d3c88f66c7a1f6caf6b1c7231e5.zip |
Add a little animation when changing the wielded item
Diffstat (limited to 'src/camera.h')
-rw-r--r-- | src/camera.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/camera.h b/src/camera.h index 0ed5c20d2..c8a6e0bb8 100644 --- a/src/camera.h +++ b/src/camera.h @@ -117,7 +117,7 @@ public: void setDigging(s32 button); // Replace the wielded item mesh - void wield(const ItemStack &item); + void wield(const ItemStack &item, u16 playeritem); // Draw the wielded tool. // This has to happen *after* the main scene is drawn. @@ -178,6 +178,12 @@ private: //dummymesh for camera irr::scene::IAnimatedMesh* m_dummymesh; + + // Animation when changing wielded item + f32 m_wield_change_timer; + scene::IMesh *m_wield_mesh_next; + u16 m_previous_playeritem; + std::string m_previous_itemname; }; #endif |