2017-05-16 16:25:31 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERFACTION_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERFACTION_HPP
|
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-05-16 16:25:31 +00:00
|
|
|
|
|
|
|
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());
|
|
|
|
|
2017-05-16 17:52:09 +00:00
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerFaction")>(player.getId());
|
2017-05-16 16:25:31 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERFACTION_HPP
|