mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:19:54 +00:00
37 lines
795 B
C++
37 lines
795 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());
|
||
|
|
||
|
packet.setPlayer(&player);
|
||
|
packet.Read();
|
||
|
//myPacket->Send(player, true);
|
||
|
|
||
|
player.sendToLoaded(&packet);
|
||
|
|
||
|
Script::Call<Script::CallbackIdentity("OnPlayerEquipmentChange")>(player.getId());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORPLAYEREQUIPMENT_HPP
|