2017-04-16 06:58:40 +00:00
|
|
|
#ifndef OPENMW_PLAYERPROCESSOR_HPP
|
|
|
|
#define OPENMW_PLAYERPROCESSOR_HPP
|
|
|
|
|
2019-08-19 18:39:33 +00:00
|
|
|
#include <components/openmw-mp/TimedLog.hpp>
|
2017-04-16 06:58:40 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "../LocalPlayer.hpp"
|
|
|
|
#include "../DedicatedPlayer.hpp"
|
|
|
|
#include "../PlayerList.hpp"
|
2017-04-18 07:05:32 +00:00
|
|
|
#include "BaseClientPacketProcessor.hpp"
|
2017-04-16 06:58:40 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-06-30 12:09:05 +00:00
|
|
|
class PlayerProcessor : public BasePacketProcessor<PlayerProcessor>, public BaseClientPacketProcessor
|
2017-04-16 06:58:40 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player) = 0;
|
|
|
|
|
|
|
|
static bool Process(RakNet::Packet &packet);
|
2019-10-26 13:43:08 +00:00
|
|
|
|
|
|
|
virtual ~PlayerProcessor();
|
2017-04-16 06:58:40 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_PLAYERPROCESSOR_HPP
|