Tramway SDK
|
Maps actions to sounds. More...
#include <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::Design::SoundTable::AddSound | ( | SoundAction | type, |
name_t | sound | ||
) |
|
static |
name_t tram::Ext::Design::SoundTable::GetSound | ( | SoundAction | type | ) |
void tram::Ext::Design::SoundTable::PlaySound | ( | SoundAction | type | ) |
void tram::Ext::Design::SoundTable::PlaySound | ( | SoundAction | type, |
vec3 | position, | ||
float | volume | ||
) |