1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Add different place sound for nodes

This commit is contained in:
PilzAdam
2013-03-25 23:59:17 +01:00
parent 7d9329ecfe
commit 5e7e0347cd
7 changed files with 47 additions and 8 deletions

View File

@@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <iostream>
#include <set>
#include "itemgroup.h"
#include "sound.h"
class IGameDef;
struct ToolCapabilities;
@@ -66,6 +67,7 @@ struct ItemDefinition
// May be NULL. If non-NULL, deleted by destructor
ToolCapabilities *tool_capabilities;
ItemGroupList groups;
SimpleSoundSpec sound_place;
// Client shall immediately place this node when player places the item.
// Server will update the precise end result a moment later.