(svn r17139) -Change: add the concept of sound sets
This commit is contained in:
@@ -75,7 +75,7 @@ struct BaseSet {
|
||||
};
|
||||
|
||||
/**
|
||||
* Base for all base media (graphics, sound)
|
||||
* Base for all base media (graphics, sounds)
|
||||
* @tparam Tbase_set the real set we're going to be
|
||||
*/
|
||||
template <class Tbase_set>
|
||||
@@ -194,4 +194,21 @@ public:
|
||||
static void DeterminePalette();
|
||||
};
|
||||
|
||||
/** All data of a sounds set. */
|
||||
struct SoundsSet : BaseSet<SoundsSet, 1> {
|
||||
/**
|
||||
* Is this set useable? Are enough files found to think it exists.
|
||||
* @return true if it's useable.
|
||||
*/
|
||||
bool IsUseable() const
|
||||
{
|
||||
return this->found_files > 0;
|
||||
}
|
||||
};
|
||||
|
||||
/** All data/functions related with replacing the base sounds */
|
||||
class BaseSounds : public BaseMedia<SoundsSet> {
|
||||
public:
|
||||
};
|
||||
|
||||
#endif /* BASE_MEDIA_BASE_H */
|
||||
|
||||
Reference in New Issue
Block a user