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