2017-03-31 18:36:24 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 01.04.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-03-31 18:36:24 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-12-09 02:20:55 +00:00
|
|
|
class ProcessorPlayerEquipment final: public PlayerProcessor
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerEquipment()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_EQUIPMENT)
|
|
|
|
}
|
|
|
|
|
2017-12-07 23:32:39 +00:00
|
|
|
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
|
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
|
2017-12-09 07:03:06 +00:00
|
|
|
player->sendToLoaded(packet);
|
2017-03-31 18:36:24 +00:00
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_EQUIPMENT>(player);
|
2017-03-31 18:36:24 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|