forked from mirror/openmw-tes3mp
35 lines
709 B
C++
35 lines
709 B
C++
|
//
|
||
|
// Created by koncord on 01.04.17.
|
||
|
//
|
||
|
|
||
|
#ifndef OPENMW_PROCESSORPLAYERINVENTORY_HPP
|
||
|
#define OPENMW_PROCESSORPLAYERINVENTORY_HPP
|
||
|
|
||
|
#include "../PlayerProcessor.hpp"
|
||
|
|
||
|
namespace mwmp
|
||
|
{
|
||
|
class ProcessorPlayerInventory : public PlayerProcessor
|
||
|
{
|
||
|
public:
|
||
|
ProcessorPlayerInventory()
|
||
|
{
|
||
|
BPP_INIT(ID_PLAYER_INVENTORY)
|
||
|
}
|
||
|
|
||
|
void Do(PlayerPacket &packet, Player &player) override
|
||
|
{
|
||
|
DEBUG_PRINTF(strPacketID.c_str());
|
||
|
|
||
|
packet.setPlayer(&player);
|
||
|
packet.Read();
|
||
|
|
||
|
Script::Call<Script::CallbackIdentity("OnPlayerInventoryChange")>(player.getId());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
#endif //OPENMW_PROCESSORPLAYERINVENTORY_HPP
|