forked from mirror/openmw-tes3mp
28 lines
650 B
C++
28 lines
650 B
C++
|
#ifndef OPENMW_PROCESSORPLAYERDISPOSITION_HPP
|
||
|
#define OPENMW_PROCESSORPLAYERDISPOSITION_HPP
|
||
|
|
||
|
#include "apps/openmw-mp/PlayerProcessor.hpp"
|
||
|
|
||
|
namespace mwmp
|
||
|
{
|
||
|
class ProcessorPlayerDisposition : public PlayerProcessor
|
||
|
{
|
||
|
public:
|
||
|
ProcessorPlayerDisposition()
|
||
|
{
|
||
|
BPP_INIT(ID_PLAYER_DISPOSITION)
|
||
|
}
|
||
|
|
||
|
void Do(PlayerPacket &packet, Player &player) override
|
||
|
{
|
||
|
DEBUG_PRINTF(strPacketID.c_str());
|
||
|
|
||
|
packet.Send(true);
|
||
|
|
||
|
Script::Call<Script::CallbackIdentity("OnPlayerDisposition")>(player.getId());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORPLAYERDISPOSITION_HPP
|