1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/apps/openmw/mwworld/actiondoor.cpp
2022-09-22 21:35:26 +03:00

18 lines
363 B
C++

#include "actiondoor.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
namespace MWWorld
{
ActionDoor::ActionDoor(const MWWorld::Ptr& object)
: Action(false, object)
{
}
void ActionDoor::executeImp(const MWWorld::Ptr& actor)
{
MWBase::Environment::get().getWorld()->activateDoor(getTarget());
}
}