mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 06:19:55 +00:00
19 lines
484 B
C++
19 lines
484 B
C++
#include "failedaction.hpp"
|
|
#include "../mwbase/world.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
#include "../mwbase/windowmanager.hpp"
|
|
|
|
|
|
namespace MWWorld
|
|
{
|
|
FailedAction::FailedAction(const std::string &msg)
|
|
: Action(false), mMessage(msg)
|
|
{ }
|
|
|
|
void FailedAction::executeImp(const Ptr &actor)
|
|
{
|
|
if(actor.getRefData().getHandle() == "player" && !mMessage.empty())
|
|
MWBase::Environment::get().getWindowManager()->messageBox(mMessage);
|
|
}
|
|
}
|