mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 06:49:55 +00:00
ad388c7e12
Also reorder packets and packet processors.
26 lines
597 B
C++
26 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
|