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