2018-07-15 02:34:59 +00:00
|
|
|
#ifndef OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|
|
|
|
#define OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|
2017-06-10 11:04:19 +00:00
|
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2018-07-15 02:34:59 +00:00
|
|
|
class ProcessorWorldKillCount : public PlayerProcessor
|
2017-06-10 11:04:19 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-07-15 02:34:59 +00:00
|
|
|
ProcessorWorldKillCount()
|
2017-06-10 11:04:19 +00:00
|
|
|
{
|
2018-07-15 02:34:59 +00:00
|
|
|
BPP_INIT(ID_WORLD_KILL_COUNT)
|
2017-06-10 11:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-07-15 02:34:59 +00:00
|
|
|
#endif //OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|