mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:19:54 +00:00
30 lines
621 B
C++
30 lines
621 B
C++
|
#ifndef GAME_SOUND_REGIONSOUNDSELECTOR_H
|
||
|
#define GAME_SOUND_REGIONSOUNDSELECTOR_H
|
||
|
|
||
|
#include <boost/optional.hpp>
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace MWBase
|
||
|
{
|
||
|
class World;
|
||
|
}
|
||
|
|
||
|
namespace MWSound
|
||
|
{
|
||
|
class RegionSoundSelector
|
||
|
{
|
||
|
public:
|
||
|
boost::optional<std::string> getNextRandom(float duration, const std::string& regionName,
|
||
|
const MWBase::World& world);
|
||
|
|
||
|
private:
|
||
|
float mTimeToNextEnvSound = 0.0f;
|
||
|
int mSumChance = 0;
|
||
|
std::string mLastRegionName;
|
||
|
float mTimePassed = 0.0;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|