2017-05-29 01:43:52 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERBOOK_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERBOOK_HPP
|
|
|
|
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-05-29 01:43:52 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2019-10-24 19:16:17 +00:00
|
|
|
class ProcessorPlayerBook final: public PlayerProcessor
|
2017-05-29 01:43:52 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerBook()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_BOOK)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
2017-06-27 05:27:14 +00:00
|
|
|
if (isLocal())
|
|
|
|
{
|
|
|
|
static_cast<LocalPlayer*>(player)->setBooks();
|
|
|
|
}
|
2017-05-29 01:43:52 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERBOOK_HPP
|