mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-02 04:15:32 +00:00
21 lines
557 B
C++
21 lines
557 B
C++
|
|
#include "actiontalk.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
#include "../mwbase/dialoguemanager.hpp"
|
|
#include "../mwbase/inputmanager.hpp"
|
|
|
|
namespace MWWorld
|
|
{
|
|
ActionTalk::ActionTalk (const Ptr& actor) : Action (false, actor) {}
|
|
|
|
bool ActionTalk::executeImp (const Ptr& actor)
|
|
{
|
|
if (MWBase::Environment::get().getInputManager ()->getControlSwitch ("playercontrols"))
|
|
{
|
|
MWBase::Environment::get().getDialogueManager()->startDialogue (getTarget());
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|