2017-05-29 01:43:52 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERREST_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERREST_HPP
|
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-05-29 01:43:52 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorPlayerRest : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerRest()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_REST)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
|
|
{
|
|
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
|
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerRest")>(player.getId());
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERREST_HPP
|