mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 15:49:55 +00:00
24 lines
477 B
C++
24 lines
477 B
C++
|
|
#include "action.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
#include "../mwsound/soundmanager.hpp"
|
|
|
|
MWWorld::Action::Action() {}
|
|
|
|
MWWorld::Action::~Action() {}
|
|
|
|
void MWWorld::Action::execute (const Ptr& actor)
|
|
{
|
|
if (!mSoundId.empty())
|
|
MWBase::Environment::get().getSoundManager()->playSound3D (actor, mSoundId, 1.0, 1.0,
|
|
MWSound::Play_NoTrack);
|
|
|
|
executeImp (actor);
|
|
}
|
|
|
|
void MWWorld::Action::setSound (const std::string& id)
|
|
{
|
|
mSoundId = id;
|
|
}
|