mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 16:53:52 +00:00
30 lines
676 B
C++
30 lines
676 B
C++
//
|
|
// Created by koncord on 01.04.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYERSPELLBOOK_HPP
|
|
#define OPENMW_PROCESSORPLAYERSPELLBOOK_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerSpellbook final: public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerSpellbook()
|
|
{
|
|
BPP_INIT(ID_PLAYER_SPELLBOOK)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_SPELLBOOK>(player);
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSPELLBOOK_HPP
|