mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-02 00:45:32 +00:00
4ca5da5666
Use LibFFI for Public & Timer APIs Use "PlayerId" type instead "unsigned short" Add GetPluginDir() function
27 lines
607 B
C++
27 lines
607 B
C++
#ifndef OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|
|
#define OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorWorldKillCount : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorWorldKillCount()
|
|
{
|
|
BPP_INIT(ID_WORLD_KILL_COUNT)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
packet.Send(true);
|
|
|
|
Plugin::Call<CallbackIndex("OnWorldKillCount")>(player.getId());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORWORLDKILLCOUNT_HPP
|