mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-22 00:53:50 +00:00
27 lines
672 B
C++
27 lines
672 B
C++
#ifndef OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|
|
#define OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerKillCount final: public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerKillCount()
|
|
{
|
|
BPP_INIT(ID_PLAYER_KILL_COUNT)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
packet.Send(true);
|
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_KILLCOUNT>(player.get());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|