diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 00:33:58 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 04:24:26 +0200 |
commit | 77120a021df955947841f9646cb61d67a272618b (patch) | |
tree | e2151fa25d2247547cdddbaa2da19f618d3d76d7 /src/tool.h | |
parent | 6c14025b2d416105915440e114de927c26e925ac (diff) | |
download | minetest-77120a021df955947841f9646cb61d67a272618b.tar.gz minetest-77120a021df955947841f9646cb61d67a272618b.tar.bz2 minetest-77120a021df955947841f9646cb61d67a272618b.zip |
Digging and placing sounds
Diffstat (limited to 'src/tool.h')
-rw-r--r-- | src/tool.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tool.h b/src/tool.h index 401bb1f53..a92a77294 100644 --- a/src/tool.h +++ b/src/tool.h @@ -82,11 +82,14 @@ struct DigParams float time; // Caused wear u16 wear; + std::string main_group; - DigParams(bool a_diggable=false, float a_time=0, u16 a_wear=0): + DigParams(bool a_diggable=false, float a_time=0, u16 a_wear=0, + std::string a_main_group=""): diggable(a_diggable), time(a_time), - wear(a_wear) + wear(a_wear), + main_group(a_main_group) {} }; @@ -100,10 +103,12 @@ struct HitParams { s16 hp; s16 wear; + std::string main_group; - HitParams(s16 hp_=0, s16 wear_=0): + HitParams(s16 hp_=0, s16 wear_=0, std::string main_group_=""): hp(hp_), - wear(wear_) + wear(wear_), + main_group(main_group_) {} }; @@ -118,6 +123,7 @@ struct PunchDamageResult bool did_punch; int damage; int wear; + std::string main_group; PunchDamageResult(): did_punch(false), |