mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 22:45:33 +00:00
19 lines
476 B
C++
19 lines
476 B
C++
|
|
#include "actiontalk.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
#include "../mwgui/window_manager.hpp"
|
|
#include "../mwdialogue/dialoguemanager.hpp"
|
|
|
|
namespace MWWorld
|
|
{
|
|
ActionTalk::ActionTalk (const Ptr& actor) : mActor (actor) {}
|
|
|
|
void ActionTalk::execute()
|
|
{
|
|
if (!MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Inventory))
|
|
return;
|
|
|
|
MWBase::Environment::get().getDialogueManager()->startDialogue (mActor);
|
|
}
|
|
}
|