1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:49:55 +00:00
openmw-tes3mp/apps/openmw/mwworld/actiontrap.hpp
2020-10-16 22:18:54 +04:00

27 lines
571 B
C++

#ifndef GAME_MWWORLD_ACTIONTRAP_H
#define GAME_MWWORLD_ACTIONTRAP_H
#include <string>
#include "action.hpp"
namespace MWWorld
{
class ActionTrap : public Action
{
std::string mSpellId;
MWWorld::Ptr mTrapSource;
void executeImp (const Ptr& actor) override;
public:
/// @param spellId
/// @param trapSource
ActionTrap (const std::string& spellId, const Ptr& trapSource)
: Action(false, trapSource), mSpellId(spellId), mTrapSource(trapSource) {}
};
}
#endif