1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00
OpenMW/apps/openmw/mwsound/regionsoundselector.hpp
2024-03-12 20:09:04 +01:00

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