You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
677 B
C++
32 lines
677 B
C++
//
|
|
// Created by koncord on 01.04.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|
|
#define OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
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);
|
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerEquipment")>(player.getId());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|