mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-08-16 08:59:09 +00:00
26 lines
519 B
C++
26 lines
519 B
C++
#ifndef CAUDIOLOOKUPTABLE
|
|
#define CAUDIOLOOKUPTABLE
|
|
|
|
#include "CResource.h"
|
|
|
|
class CAudioLookupTable : public CResource
|
|
{
|
|
DECLARE_RESOURCE_TYPE(AudioLookupTable)
|
|
friend class CAudioGroupLoader;
|
|
std::vector<uint16> mDefineIDs;
|
|
|
|
public:
|
|
CAudioLookupTable(CResourceEntry *pEntry = 0)
|
|
: CResource(pEntry)
|
|
{}
|
|
|
|
inline uint16 FindSoundDefineID(uint32 SoundID)
|
|
{
|
|
if (SoundID >= mDefineIDs.size()) return -1;
|
|
return mDefineIDs[SoundID];
|
|
}
|
|
};
|
|
|
|
#endif // CAUDIOLOOKUPTABLE
|
|
|