mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
24 lines
480 B
C++
24 lines
480 B
C++
#ifndef GAME_SOUND_REGIONSOUNDSELECTOR_H
|
|
#define GAME_SOUND_REGIONSOUNDSELECTOR_H
|
|
|
|
#include <components/esm/refid.hpp>
|
|
|
|
namespace MWSound
|
|
{
|
|
class RegionSoundSelector
|
|
{
|
|
public:
|
|
ESM::RefId getNextRandom(float duration, const ESM::RefId& regionName);
|
|
|
|
RegionSoundSelector();
|
|
|
|
private:
|
|
float mTimeToNextEnvSound = 0.0f;
|
|
float mTimePassed = 0.0;
|
|
float mMinTimeBetweenSounds;
|
|
float mMaxTimeBetweenSounds;
|
|
};
|
|
}
|
|
|
|
#endif
|