mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 09:49:55 +00:00
27 lines
597 B
C++
27 lines
597 B
C++
|
#ifndef OPENMW_PROCESSORPLAYERFACTION_HPP
|
||
|
#define OPENMW_PROCESSORPLAYERFACTION_HPP
|
||
|
|
||
|
|
||
|
#include "apps/openmw-mp/PlayerProcessor.hpp"
|
||
|
|
||
|
namespace mwmp
|
||
|
{
|
||
|
class ProcessorPlayerFaction : public PlayerProcessor
|
||
|
{
|
||
|
public:
|
||
|
ProcessorPlayerFaction()
|
||
|
{
|
||
|
BPP_INIT(ID_PLAYER_FACTION)
|
||
|
}
|
||
|
|
||
|
void Do(PlayerPacket &packet, Player &player) override
|
||
|
{
|
||
|
DEBUG_PRINTF(strPacketID.c_str());
|
||
|
|
||
|
Script::Call<Script::CallbackIdentity("OnPlayerFactionChange")>(player.getId());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORPLAYERFACTION_HPP
|