|
OpenTTD Source 20251117-master-g7398d2e290
|
All data/functions related with replacing the base sounds. More...
#include <base_media_sounds.h>
Static Public Attributes | |
| static std::string | ini_set |
| The set as saved in the config file. | |
Additional Inherited Members | |
Static Public Member Functions inherited from BaseMedia< SoundsSet > | |
| static bool | DetermineBestSet () |
| Determine the graphics pack that has to be used. | |
| static uint | FindSets () |
| Do the scan for files. | |
| static std::span< const std::unique_ptr< SoundsSet > > | GetAvailableSets () |
| Return the available sets. | |
| static bool | SetSet (const SoundsSet *set) |
| Set the set to be used. | |
| static bool | SetSetByName (const std::string &name) |
| Set the set to be used. | |
| static bool | SetSetByShortname (uint32_t shortname) |
| Set the set to be used. | |
| static void | GetSetsList (std::back_insert_iterator< std::string > &output_iterator) |
| Returns a list with the sets. | |
| static int | GetNumSets () |
| Count the number of available graphics sets. | |
| static int | GetIndexOfUsedSet () |
| Get the index of the currently active graphics set. | |
| static const SoundsSet * | GetSet (int index) |
| Get the name of the graphics set at the specified index. | |
| static const SoundsSet * | GetUsedSet () |
| Return the used set. | |
| static bool | HasSet (const ContentInfo &ci, bool md5sum) |
| Check whether we have an set with the exact characteristics as ci. | |
Protected Member Functions inherited from BaseMedia< SoundsSet > | |
| bool | AddFile (const std::string &filename, size_t basepath_length, const std::string &tar_filename) override |
| Add a file with the given filename. | |
Static Protected Member Functions inherited from BaseMedia< SoundsSet > | |
| static std::string_view | GetExtension () |
| Get the extension that is used to identify this set. | |
| static std::span< const std::unique_ptr< SoundsSet > > | GetDuplicateSets () |
| Return the duplicate sets. | |
Static Protected Attributes inherited from BaseMedia< SoundsSet > | |
| static std::vector< std::unique_ptr< SoundsSet > > | available_sets |
| All available sets. | |
| static std::vector< std::unique_ptr< SoundsSet > > | duplicate_sets |
| All sets that aren't available, but needed for not downloading base sets when a newer version than the one on BaNaNaS is loaded. | |
| static const SoundsSet * | used_set |
| The currently used set. | |
All data/functions related with replacing the base sounds.
Definition at line 25 of file base_media_sounds.h.
|
inlinestatic |
The set as saved in the config file.
Definition at line 28 of file base_media_sounds.h.
Referenced by ChangeSoundSet(), and openttd_main().