2017-03-31 18:36:24 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 01.04.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYERSPELLBOOK_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERSPELLBOOK_HPP
|
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-03-31 18:36:24 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorPlayerSpellbook : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerSpellbook()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_SPELLBOOK)
|
|
|
|
}
|
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
void Do(PlayerPacket &packet, std::shared_ptr<Player> player) override
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
|
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
2017-04-02 22:44:14 +00:00
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_SPELLBOOK>(player);
|
2017-03-31 18:36:24 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSPELLBOOK_HPP
|