mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-28 20:15:32 +00:00
24 lines
441 B
C++
24 lines
441 B
C++
#include "failedaction.hpp"
|
|
#include "../mwbase/world.hpp"
|
|
|
|
|
|
namespace MWWorld
|
|
{
|
|
FailedAction::FailedAction (const std::string& msg) : Action (false)
|
|
{
|
|
message = msg;
|
|
}
|
|
|
|
FailedAction::FailedAction () : Action (false)
|
|
{
|
|
|
|
}
|
|
|
|
void FailedAction::executeImp (const Ptr& actor)
|
|
{
|
|
if ( actor.getRefData().getHandle()=="player" and not(message.empty()))
|
|
{
|
|
//return a message here
|
|
}
|
|
}
|
|
}
|