mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add different place sound for nodes
This commit is contained in:
parent
7d9329ecfe
commit
5e7e0347cd
7 changed files with 47 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue