You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
564 B
C++
26 lines
564 B
C++
#ifndef OPENMW_PROCESSORPLAYERTOPIC_HPP
|
|
#define OPENMW_PROCESSORPLAYERTOPIC_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerTopic : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerTopic()
|
|
{
|
|
BPP_INIT(ID_PLAYER_TOPIC)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerTopic")>(player.getId());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERTOPIC_HPP
|