mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Add event manager and use it to trigger sounds
This commit is contained in:
@@ -226,12 +226,14 @@ Client::Client(
|
||||
IWritableTextureSource *tsrc,
|
||||
IWritableItemDefManager *itemdef,
|
||||
IWritableNodeDefManager *nodedef,
|
||||
ISoundManager *sound
|
||||
ISoundManager *sound,
|
||||
MtEventManager *event
|
||||
):
|
||||
m_tsrc(tsrc),
|
||||
m_itemdef(itemdef),
|
||||
m_nodedef(nodedef),
|
||||
m_sound(sound),
|
||||
m_event(event),
|
||||
m_mesh_update_thread(this),
|
||||
m_env(
|
||||
new ClientMap(this, this, control,
|
||||
@@ -2330,4 +2332,8 @@ ISoundManager* Client::getSoundManager()
|
||||
{
|
||||
return m_sound;
|
||||
}
|
||||
MtEventManager* Client::getEventManager()
|
||||
{
|
||||
return m_event;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user