2017-06-10 11:04:19 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|
|
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-12-09 02:18:17 +00:00
|
|
|
class ProcessorPlayerKillCount final: public PlayerProcessor
|
2017-06-10 11:04:19 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerKillCount()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_KILL_COUNT)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
|
|
|
if (isRequest())
|
|
|
|
{
|
|
|
|
// Entire list of topics cannot currently be requested from players
|
|
|
|
}
|
|
|
|
else if (player != 0)
|
|
|
|
{
|
|
|
|
static_cast<LocalPlayer*>(player)->setKills();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERKILLCOUNT_HPP
|