mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
18 lines
322 B
C++
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);
|
|
}
|
|
}
|