1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00
OpenMW/apps/openmw/mwworld/actionapply.cpp
2023-07-08 11:28:56 +02:00

18 lines
322 B
C++

#include "actionapply.hpp"
#include "class.hpp"
namespace MWWorld
{
ActionApply::ActionApply(const Ptr& object, const ESM::RefId& id)
: Action(false, object)
, mId(id)
{
}
void ActionApply::executeImp(const Ptr& actor)
{
actor.getClass().consume(getTarget(), actor);
}
}