|
@@ -8,25 +8,26 @@
|
|
|
*/
|
|
|
|
|
|
/** @file music.cpp The songs that OpenTTD knows. */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
/* The type of set we're replacing */
|
|
|
/** The type of set we're replacing */
|
|
|
#define SET_TYPE "music"
|
|
|
#include "base_media_func.h"
|
|
|
|
|
|
INSTANTIATE_BASE_MEDIA_METHODS(BaseMedia<MusicSet>, MusicSet)
|
|
|
|
|
|
/** Names corresponding to the music set's files */
|
|
|
static const char * const _music_file_names[] = {
|
|
|
"theme",
|
|
|
"old_0", "old_1", "old_2", "old_3", "old_4", "old_5", "old_6", "old_7", "old_8", "old_9",
|
|
|
"new_0", "new_1", "new_2", "new_3", "new_4", "new_5", "new_6", "new_7", "new_8", "new_9",
|
|
|
"ezy_0", "ezy_1", "ezy_2", "ezy_3", "ezy_4", "ezy_5", "ezy_6", "ezy_7", "ezy_8", "ezy_9",
|
|
|
};
|
|
|
/** Make sure we aren't messing things up. */
|
|
|
assert_compile(lengthof(_music_file_names) == NUM_SONGS_AVAILABLE);
|
|
|
|
|
|
template <class T, size_t Tnum_files, Subdirectory Tsubdir>
|
|
|
/* static */ const char * const *BaseSet<T, Tnum_files, Tsubdir>::file_names = _music_file_names;
|
|
|
|
|
|
template <class Tbase_set>
|