Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
480 B
Raw Blame
#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