2017-03-31 18:36:24 +00:00
|
|
|
#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
|
|
|
|
{
|
|
|
|
class ProcessorPlayerEquipment : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerEquipment()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_EQUIPMENT)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
|
|
{
|
|
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
|
|
|
|
player.sendToLoaded(&packet);
|
|
|
|
|
2017-05-16 17:52:09 +00:00
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerEquipment")>(player.getId());
|
2017-03-31 18:36:24 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|