openmw-tes3coop/apps/openmw-mp/processors/world/ProcessorActorFrame.hpp

25 lines
605 B
C++

#ifndef OPENMW_PROCESSORACTORFRAME_HPP
#define OPENMW_PROCESSORACTORFRAME_HPP
#include "apps/openmw-mp/WorldProcessor.hpp"
namespace mwmp
{
class ProcessorActorFrame : public WorldProcessor
{
public:
ProcessorActorFrame()
{
BPP_INIT(ID_ACTOR_FRAME)
}
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
{
packet.Send(true);
Script::Call<Script::CallbackIdentity("OnActorFrame")>(player.getId(), event.cell.getDescription().c_str());
}
};
}
#endif //OPENMW_PROCESSORACTORFRAME_HPP