![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
For adding a set of extra sound data to the game. More...
#include <ExtraSounds.h>
Public Member Functions | |
ExtraSounds () | |
Creates a blank external sound set. More... | |
virtual | ~ExtraSounds () |
Cleans up the external sound set. More... | |
void | load (const YAML::Node &node, int modIndex) |
Loads the data from yaml. More... | |
std::string | getType () const |
Gets the sound's type. More... | |
std::map< int, std::string > * | getSounds () |
Gets the list of sounds defined by this mod. More... | |
int | getModIndex () const |
Gets the mod index for this external sound set. More... | |
SoundSet * | loadSoundSet (SoundSet *set) const |
Load the external sound into a set. More... | |
For adding a set of extra sound data to the game.
OpenXcom::ExtraSounds::ExtraSounds | ( | ) |
Creates a blank external sound set.
Creates a blank set of extra sound data.
|
virtual |
Cleans up the external sound set.
Cleans up the extra sound set.
int OpenXcom::ExtraSounds::getModIndex | ( | ) | const |
Gets the mod index for this external sound set.
Gets the mod index for this external sounds set.
std::map< int, std::string > * OpenXcom::ExtraSounds::getSounds | ( | ) |
Gets the list of sounds defined by this mod.
std::string OpenXcom::ExtraSounds::getType | ( | ) | const |
Gets the sound's type.
Gets the filename that this sound set represents.
void OpenXcom::ExtraSounds::load | ( | const YAML::Node & | node, |
int | modIndex | ||
) |
Loads the data from yaml.
Loads the extra sound set from YAML.
node | YAML node. |
modIndex | The internal index of the associated mod. |
Load the external sound into a set.
Loads the external sounds into a new or existing soundset.
set | Existing soundset. |