|
Tramway SDK v0.1.1
|
Maps actions to sounds. More...
#include <extensions/kitchensink/soundtable.h>
Public Member Functions | |
| void | AddSound (SoundAction type, name_t sound) |
| name_t | GetSound (SoundAction type) |
| void | PlaySound (SoundAction type) |
| void | PlaySound (SoundAction type, vec3 position, float volume) |
Static Public Member Functions | |
| static SoundTable * | Find (name_t name) |
Maps actions to sounds.
Perfect for storing the aural properties of various materials, or taking the actions that a door or some other container can perform, e.g. opening, closing, trying to open but failing due to being locked, and mappping them to specific sounds.
| void tram::Ext::Kitchensink::SoundTable::AddSound | ( | SoundAction | type, |
| name_t | sound | ||
| ) |
|
static |
| name_t tram::Ext::Kitchensink::SoundTable::GetSound | ( | SoundAction | type | ) |
| void tram::Ext::Kitchensink::SoundTable::PlaySound | ( | SoundAction | type | ) |
| void tram::Ext::Kitchensink::SoundTable::PlaySound | ( | SoundAction | type, |
| vec3 | position, | ||
| float | volume | ||
| ) |